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

Method invoke

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

Source from the content-addressed store, hash-verified

145 struct lua2object
146 {
147 static T invoke(lua_State *L, int index)
148 {
149 if(!lua_isuserdata(L,index))
150 {
151 lua_pushstring(L, "no class at first argument. (forgot ':' expression ?)");
152 lua_error(L);
153 }
154 return void2type<T>::invoke(user2type<user*>::invoke(L,index)->m_p);
155 }
156 };
157
158 template<typename T>

Callers

nothing calls this directly

Calls 3

lua_isuserdataFunction · 0.85
lua_pushstringFunction · 0.85
lua_errorFunction · 0.85

Tested by

no test coverage detected