MCPcopy Create free account
hub / github.com/Tencent/UnLua / HotReload

Function HotReload

Plugins/UnLua/Source/UnLua/Private/UnLuaLib.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 static int HotReload(lua_State* L)
52 {
53#if UNLUA_WITH_HOT_RELOAD
54 luaL_loadstring(L, "require('UnLua.HotReload').reload(...)");
55 lua_insert(L, 1);
56 lua_pcall(L, lua_gettop(L)-1, LUA_MULTRET, 0);
57#endif
58 return 0;
59 }
60
61 static int Ref(lua_State* L)
62 {

Callers 1

OnLuaFilesModifiedMethod · 0.85

Calls 2

luaL_loadstringFunction · 0.85
lua_gettopFunction · 0.85

Tested by

no test coverage detected