MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_newuserdata

Function lua_newuserdata

other_src/lua/src/lapi.cpp:1061–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059
1060
1061LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
1062 Udata *u;
1063 lua_lock(L);
1064 luaC_checkGC(L);
1065 u = luaS_newudata(L, size, getcurrenv(L));
1066 setuvalue(L, L->top, u);
1067 api_incr_top(L);
1068 lua_unlock(L);
1069 return u + 1;
1070}
1071
1072
1073#ifdef LUA_READONLY_TABLES

Callers 15

ll_registerFunction · 0.70
doublecapFunction · 0.70
doublestackFunction · 0.70
newpattFunction · 0.70
newfileFunction · 0.70
luaB_newproxyFunction · 0.70
CreateMeshMethod · 0.50
PushDoubleMethod · 0.50
RefTextureMethod · 0.50
CreateTextureMethod · 0.50
CreateListMethod · 0.50
CreateQueryMethod · 0.50

Calls 2

luaS_newudataFunction · 0.70
getcurrenvFunction · 0.70

Tested by

no test coverage detected