MCPcopy Create free account
hub / github.com/Tencent/xLua / lua_newuserdata

Function lua_newuserdata

WebGLPlugins/lapi.c:1183–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181
1182
1183LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
1184 Udata *u;
1185 lua_lock(L);
1186 u = luaS_newudata(L, size);
1187 setuvalue(L, L->top, u);
1188 api_incr_top(L);
1189 luaC_checkGC(L);
1190 lua_unlock(L);
1191 return getudatamem(u);
1192}
1193
1194
1195

Callers 9

gmatchFunction · 0.85
xlua_pushcsobjFunction · 0.85
xlua_pushstructFunction · 0.85
xlua_newstructFunction · 0.85
css_cloneFunction · 0.85
newboxFunction · 0.85
lua_pushint64Function · 0.85
lua_pushuint64Function · 0.85
newprefileFunction · 0.85

Calls 1

luaS_newudataFunction · 0.85

Tested by

no test coverage detected