luaa: emit deprecation signal
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b83766b4c9
commit
0d03ea88d5
6
luaa.h
6
luaa.h
|
@ -33,8 +33,12 @@
|
||||||
#include "common/lualib.h"
|
#include "common/lualib.h"
|
||||||
|
|
||||||
#define luaA_deprecate(L, repl) \
|
#define luaA_deprecate(L, repl) \
|
||||||
|
do { \
|
||||||
luaA_warn(L, "%s: This function is deprecated and will be removed, see %s", \
|
luaA_warn(L, "%s: This function is deprecated and will be removed, see %s", \
|
||||||
__FUNCTION__, repl)
|
__FUNCTION__, repl); \
|
||||||
|
lua_pushlstring(L, __FUNCTION__, sizeof(__FUNCTION__)); \
|
||||||
|
signal_object_emit(L, &global_signals, "debug::deprecation", 1); \
|
||||||
|
} while(0)
|
||||||
|
|
||||||
#define luaA_checkscreen(screen) \
|
#define luaA_checkscreen(screen) \
|
||||||
do { \
|
do { \
|
||||||
|
|
Loading…
Reference in New Issue