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

Function register_method

ogsr_engine/xrGame/script_vars_storage.cpp:252–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250using namespace luabind::detail;
251
252static void register_method(lua_State* L, const char* key, int mt_index, lua_CFunction f)
253{
254 lua_pushcfunction(L, f);
255 lua_setfield(L, mt_index, key);
256}
257
258CScriptVarsTable* lua_tosvt(lua_State* L, int index)
259{

Callers 1

lua_pushsvtFunction · 0.85

Calls 1

lua_setfieldFunction · 0.50

Tested by

no test coverage detected