MCPcopy Create free account
hub / github.com/crownengine/crown / lua_touserdata

Function lua_touserdata

3rdparty/lua/src/lapi.c:385–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384
385LUA_API void *lua_touserdata (lua_State *L, int idx) {
386 StkId o = index2adr(L, idx);
387 switch (ttype(o)) {
388 case LUA_TUSERDATA: return (rawuvalue(o) + 1);
389 case LUA_TLIGHTUSERDATA: return pvalue(o);
390 default: return NULL;
391 }
392}
393
394
395LUA_API lua_State *lua_tothread (lua_State *L, int idx) {

Callers 12

pmainFunction · 0.70
luaL_checkudataFunction · 0.70
pmainFunction · 0.70
ll_registerFunction · 0.70
ll_requireFunction · 0.70
lua_topointerFunction · 0.70
io_typeFunction · 0.70
getiofileFunction · 0.70
io_readlineFunction · 0.70
is_vector3Method · 0.50
is_quaternionMethod · 0.50
is_matrix4x4Method · 0.50

Calls 1

index2adrFunction · 0.70

Tested by

no test coverage detected