MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / lua_cast_failed

Function lua_cast_failed

ogsr_engine/COMMON_AI/script_engine.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81#ifdef LUABIND_NO_EXCEPTIONS
82static void lua_cast_failed(lua_State* L, LUABIND_TYPE_INFO info)
83{
84 CScriptEngine::print_output(L, "[" __FUNCTION__ "]", LUA_ERRRUN);
85
86 const char* info_name = info->name();
87
88 Msg("!![%s] LUA error: cannot cast lua value to [%s]", __FUNCTION__, info_name);
89 // FATAL("[%s] LUA error: cannot cast lua value to [%s]", __FUNCTION__, info_name); //KRodin: Тут наверное вылетать не надо.
90}
91#endif
92
93static int auto_load(lua_State* L)

Callers

nothing calls this directly

Calls 3

MsgFunction · 0.85
print_outputFunction · 0.50
nameMethod · 0.45

Tested by

no test coverage detected