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

Function check_sptr

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

Source from the content-addressed store, hash-verified

716}
717
718skr::SPtr<void> check_sptr(lua_State *L, int index, std::string_view tid)
719{
720 void* p = skr_check_unknown(L, index, tid, "[shared]skr_opaque_t");
721 return *(skr::SPtr<void>*)((char*)p + sizeof(void*));
722}
723
724int push_sobjectptr(lua_State *L, const skr::SObjectPtr<SInterface> &value, std::string_view tid)
725{

Callers 1

checkMethod · 0.85

Calls 1

skr_check_unknownFunction · 0.85

Tested by

no test coverage detected