From 0b8d3f99a5424113178329e56c2ebe4b38fd2b46 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 12 Feb 2020 19:49:48 +0100 Subject: Move core.get_connected_players() implementation to C++ Keeping the ObjectRefs around in a table isn't ideal and this allows removing the somewhat nonsensical is_player_connected() added in 86ef7147. --- src/script/common/c_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/script/common/c_internal.h') diff --git a/src/script/common/c_internal.h b/src/script/common/c_internal.h index 69b8a7fdc..d8cf3fe76 100644 --- a/src/script/common/c_internal.h +++ b/src/script/common/c_internal.h @@ -103,5 +103,6 @@ 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, int stack_depth=1); -- cgit v1.2.3