MCPcopy Create free account
hub / github.com/defold/defold / ToUserType

Function ToUserType

engine/script/src/script.cpp:835–842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833 }
834
835 void* ToUserType(lua_State* L, int user_data_index, uint32_t type_hash)
836 {
837 if (GetUserType(L, user_data_index) == type_hash)
838 {
839 return lua_touserdata(L, user_data_index);
840 }
841 return 0;
842 }
843
844 void* CheckUserType(lua_State* L, int user_data_index, uint32_t type_hash, const char* error_message)
845 {

Callers 15

GetScriptFunction · 0.85
URL_eqFunction · 0.85
ToURLFunction · 0.85
CheckUserTypeFunction · 0.85
IsHashFunction · 0.85
ToHashFunction · 0.85
ToVectorFunction · 0.85
ToVector3Function · 0.85
ToVector4Function · 0.85
ToQuatFunction · 0.85
ToMatrix4Function · 0.85
GetSceneFunction · 0.85

Calls 2

GetUserTypeFunction · 0.85
lua_touserdataFunction · 0.85

Tested by

no test coverage detected