luaa: emit deprecation signal

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-27 18:05:44 +02:00
parent b83766b4c9
commit 0d03ea88d5
1 changed files with 6 additions and 2 deletions

6
luaa.h
View File

@ -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 { \