MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / check_sobjectptr

Function check_sobjectptr

modules/engine/lua/src/build.skr_lua.cpp:746–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

744}
745
746skr::SObjectPtr<SInterface> check_sobjectptr(lua_State *L, int index, std::string_view tid)
747{
748 void* p = skr_check_unknown(L, index, tid, "[object]skr_opaque_t");
749 return *(skr::SObjectPtr<SInterface>*)((char*)p + sizeof(void*));
750
751}
752
753}// namespace skr::lua

Callers 1

checkMethod · 0.85

Calls 1

skr_check_unknownFunction · 0.85

Tested by

no test coverage detected