diff options
author | sfan5 <sfan5@live.de> | 2020-02-12 19:17:04 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-02-23 22:24:12 +0100 |
commit | c657fb343f120b7462f7ca580852636ad98b8ae0 (patch) | |
tree | 6d7b4fbe85a7e56f03e017edff52b0a56aeacfc3 /src/script/common/c_internal.h | |
parent | 4da057cc49082192bbc45689d80dec3410e41f27 (diff) | |
download | minetest-c657fb343f120b7462f7ca580852636ad98b8ae0.tar.gz minetest-c657fb343f120b7462f7ca580852636ad98b8ae0.tar.bz2 minetest-c657fb343f120b7462f7ca580852636ad98b8ae0.zip |
Refactor Script API's log_deprecated
Diffstat (limited to 'src/script/common/c_internal.h')
-rw-r--r-- | src/script/common/c_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/common/c_internal.h b/src/script/common/c_internal.h index d2131d1ad..69b8a7fdc 100644 --- a/src/script/common/c_internal.h +++ b/src/script/common/c_internal.h @@ -103,4 +103,5 @@ int script_exception_wrapper(lua_State *L, lua_CFunction f); void script_error(lua_State *L, int pcall_result, const char *mod, const char *fxn); void script_run_callbacks_f(lua_State *L, int nargs, RunCallbacksMode mode, const char *fxn); -void log_deprecated(lua_State *L, const std::string &message); +void log_deprecated(lua_State *L, const std::string &message, + int stack_depth=1); |