diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-01-15 11:31:49 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-01-15 11:31:49 -0300 |
| commit | 17e0c29d9b435392016b707309ed51409b0aea12 (patch) | |
| tree | c7178cf68fac2f1f9c3b22ce50be29b67f416cc0 /lua.h | |
| parent | 8eb0abc9db4d47db5192bed18565e3d1aa53566d (diff) | |
| download | lua-17e0c29d9b435392016b707309ed51409b0aea12.tar.gz lua-17e0c29d9b435392016b707309ed51409b0aea12.tar.bz2 lua-17e0c29d9b435392016b707309ed51409b0aea12.zip | |
Clear interface between references and predefines
The reference system has a defined way to add initial values to the
table where it operates.
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -80,9 +80,10 @@ typedef struct lua_State lua_State; | |||
| 80 | 80 | ||
| 81 | 81 | ||
| 82 | /* predefined values in the registry */ | 82 | /* predefined values in the registry */ |
| 83 | #define LUA_RIDX_MAINTHREAD 1 | 83 | /* index 1 is reserved for the reference mechanism */ |
| 84 | #define LUA_RIDX_GLOBALS 2 | 84 | #define LUA_RIDX_GLOBALS 2 |
| 85 | #define LUA_RIDX_LAST LUA_RIDX_GLOBALS | 85 | #define LUA_RIDX_MAINTHREAD 3 |
| 86 | #define LUA_RIDX_LAST 3 | ||
| 86 | 87 | ||
| 87 | 88 | ||
| 88 | /* type of numbers in Lua */ | 89 | /* type of numbers in Lua */ |
