Commit a2f26a96 by Juan Linietsky Committed by Rémi Verschelde

Add a macro to deprecate methods

parent 44989bc9
......@@ -311,4 +311,14 @@ extern bool _err_error_exists;
_err_error_exists = false; \
}
#define WARN_DEPRECATED \
{ \
static bool warning_shown=false;\
if (!warning_shown) {\
_err_print_error(FUNCTION_STR, __FILE__, __LINE__,"This method has been deprecated and will be removed in the future", ERR_HANDLER_WARNING); \
_err_error_exists = false; \
warning_shown=true;\
}\
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment