commit | 58216600eba27d472de33dbb89e2f3e629bf8a59 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Tue Nov 03 16:34:36 2020 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Tue Nov 03 16:34:36 2020 -0300 |
tree | 9504237097bb72548e5e7b66b753dc23056330a8 | |
parent | 94cbe4651156a84dd9114d7daaa61acd050adbe0 [diff] |
'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 is the repository of Lua development code, as seen by the Lua team. It contains the full history of all commits but is mirrored irregularly. For complete information about Lua, visit Lua.org.
Please do not send pull requests. To report issues and send patches, post a message to the Lua mailing list.
Download official Lua releases from Lua.org.