Searched refs:mLuaState (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/packages/ScriptExecutor/src/ |
D | LuaEngine.cpp | 56 mLuaState = luaL_newstate(); in LuaEngine() 57 luaL_openlibs(mLuaState); in LuaEngine() 61 lua_close(mLuaState); in ~LuaEngine() 65 return mLuaState; in getLuaState() 81 const auto status = luaL_dostring(mLuaState, scriptBody); in loadScript() 88 const char* error = lua_tostring(mLuaState, -1); in loadScript() 89 lua_pop(mLuaState, 1); in loadScript() 99 lua_register(mLuaState, "log", LuaEngine::scriptLog); in loadScript() 100 lua_register(mLuaState, "on_success", LuaEngine::onSuccess); in loadScript() 101 lua_register(mLuaState, "on_script_finished", LuaEngine::onScriptFinished); in loadScript() [all …]
|
D | LuaEngine.h | 132 lua_State* mLuaState; // owned variable
|
/packages/services/Car/tools/telemetry/lua-interpreter/ |
D | lua_engine.cc | 64 int PushLuaErrorHandler(lua_State* mLuaState, int n_args) { in PushLuaErrorHandler() argument 65 lua_getglobal(mLuaState, "debug"); in PushLuaErrorHandler() 66 lua_getfield(mLuaState, -1, "traceback"); in PushLuaErrorHandler() 67 lua_remove(mLuaState, -2); in PushLuaErrorHandler() 69 lua_insert(mLuaState, error_handler_index); in PushLuaErrorHandler()
|