MCPcopy Create free account
hub / github.com/SOUI2/soui / def

Function def

components/ScriptModule-LUA/lua_tinker/lua_tinker.h:654–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652 // global function
653 template<typename F>
654 void def(lua_State* L, const char* name, F func)
655 {
656 lua_pushlightuserdata(L, (void*)func);
657 push_functor(L, func);
658 lua_setglobal(L, name);
659 }
660
661 // global variable
662 template<typename T>

Callers 11

SScriptModule_LuaMethod · 0.85
ExpLua_CtrlsFunction · 0.85
ExpLua_WindowFunction · 0.85
ExpLua_EventArgsFunction · 0.85
ExpLua_MessageBoxFunction · 0.85
ExpLua_HostWndFunction · 0.85
ExpLua_ResProviderFunction · 0.85
ExpLua_SObjectFunction · 0.85
ExpLua_StrCpCvtFunction · 0.85
ExpLua_BasicFunction · 0.85
ExpLua_AppFunction · 0.85

Calls 3

lua_pushlightuserdataFunction · 0.85
push_functorFunction · 0.85
lua_setglobalFunction · 0.85

Tested by

no test coverage detected