mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-04 10:50:54 +01:00
Add userdata to global_State
This commit is contained in:
parent
16753a78f4
commit
2a26c09660
2 changed files with 3 additions and 0 deletions
|
@ -181,6 +181,7 @@ lua_State* lua_newstate(lua_Alloc f, void* ud)
|
|||
|
||||
g->cb = lua_Callbacks();
|
||||
g->gcstats = GCStats();
|
||||
g->userdata = NULL;
|
||||
|
||||
if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0)
|
||||
{
|
||||
|
|
|
@ -189,6 +189,8 @@ typedef struct global_State
|
|||
|
||||
GCStats gcstats;
|
||||
|
||||
void* userdata;
|
||||
|
||||
} global_State;
|
||||
// clang-format on
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue