From eef62c82a2e58700fc1216b0b8c03e421bc77995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Sat, 30 Jun 2018 17:11:38 +0200 Subject: Modernize lua read (part 2 & 3): C++ templating assurance (#7410) * Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value --- src/script/common/c_internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (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 35477375b..d2131d1ad 100644 --- a/src/script/common/c_internal.h +++ b/src/script/common/c_internal.h @@ -95,11 +95,10 @@ enum RunCallbacksMode // after seeing the first true value RUN_CALLBACKS_MODE_OR_SC, // Note: "a true value" and "a false value" refer to values that - // are converted by lua_toboolean to true or false, respectively. + // are converted by readParam to true or false, respectively. }; std::string script_get_backtrace(lua_State *L); -int script_error_handler(lua_State *L); 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, -- cgit v1.2.3