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

Method invoke

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

Source from the content-addressed store, hash-verified

204 struct val2lua { static void invoke(lua_State *L, T& input){ new(lua_newuserdata(L, sizeof(val2user<T>))) val2user<T>(input); } };
205 template<typename T>
206 struct ptr2lua { static void invoke(lua_State *L, T* input){ if(input) new(lua_newuserdata(L, sizeof(ptr2user<T>))) ptr2user<T>(input); else lua_pushnil(L); } };
207 template<typename T>
208 struct ref2lua { static void invoke(lua_State *L, T& input){ new(lua_newuserdata(L, sizeof(ref2user<T>))) ref2user<T>(input); } };
209

Callers

nothing calls this directly

Calls 2

lua_newuserdataFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected