diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-27 15:32:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-06-27 15:32:49 -0300 |
commit | 5a1c8d8ef343bf0157851a4832c2c937b812b64f (patch) | |
tree | 61948343a233dae64a1d02b7c77b00f5b7eba6da /lauxlib.h | |
parent | 124bfd20817d4624d2b69a4dc41182485912b821 (diff) | |
download | lua-5a1c8d8ef343bf0157851a4832c2c937b812b64f.tar.gz lua-5a1c8d8ef343bf0157851a4832c2c937b812b64f.tar.bz2 lua-5a1c8d8ef343bf0157851a4832c2c937b812b64f.zip |
new constant 'LUA_GNAME' for the name of the global table "_G"
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.131 2016/12/06 14:54:31 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.132 2017/04/24 18:06:12 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -15,6 +15,10 @@ | |||
15 | #include "lua.h" | 15 | #include "lua.h" |
16 | 16 | ||
17 | 17 | ||
18 | /* global table */ | ||
19 | #define LUA_GNAME "_G" | ||
20 | |||
21 | |||
18 | 22 | ||
19 | /* extra error code for 'luaL_loadfilex' */ | 23 | /* extra error code for 'luaL_loadfilex' */ |
20 | #define LUA_ERRFILE (LUA_ERRERR+1) | 24 | #define LUA_ERRFILE (LUA_ERRERR+1) |