mirror of
https://github.com/lua/lua.git
synced 2026-09-01 16:08:19 +00:00
'luaL_newstate' should not allocate extra memory
The allocation of a userdata for the state of the warn system can cause a panic if it fails; 'luaL_ref' also can fail. This commit re-implements the warn system so that it does not need an explicit state. Instead, the system uses different functions to represent the different states.
This commit is contained in: