| 18 | using namespace nb::literals; |
| 19 | |
| 20 | bool DEPRECATE(const char* old_fn, const char* new_fn) { |
| 21 | std::cerr << old_fn << " is deprecated and will be removed in a future " |
| 22 | << "version. Use " << new_fn << " instead." << std::endl; |
| 23 | return true; |
| 24 | } |
| 25 | |
| 26 | #define DEPRECATE(oldfn, newfn) static bool dep = DEPRECATE(oldfn, newfn) |
| 27 |