diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-12-04 18:17:24 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2016-12-04 18:17:24 -0200 |
| commit | b2aa2ba046502bdcdfa3de4af898810667c1843a (patch) | |
| tree | 9d9d4ad6c8e2040996fa4147d59fcb79d1a6d777 /lauxlib.h | |
| parent | beec5af2010ad0df9d95b0aaa4842ded1ac60d8a (diff) | |
| download | lua-b2aa2ba046502bdcdfa3de4af898810667c1843a.tar.gz lua-b2aa2ba046502bdcdfa3de4af898810667c1843a.tar.bz2 lua-b2aa2ba046502bdcdfa3de4af898810667c1843a.zip | |
using constants for "_LOADED" and "PRELOAD"
Diffstat (limited to 'lauxlib.h')
| -rw-r--r-- | lauxlib.h | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.h,v 1.128 2014/10/29 16:11:17 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.129 2015/11/23 11:29:43 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 | */ |
| @@ -20,6 +20,14 @@ | |||
| 20 | #define LUA_ERRFILE (LUA_ERRERR+1) | 20 | #define LUA_ERRFILE (LUA_ERRERR+1) |
| 21 | 21 | ||
| 22 | 22 | ||
| 23 | /* key, in the registry, for table of loaded modules */ | ||
| 24 | #define LUA_LOADED_TABLE "_LOADED" | ||
| 25 | |||
| 26 | |||
| 27 | /* key, in the registry, for table of preloaded loaders */ | ||
| 28 | #define LUA_PRELOAD_TABLE "_PRELOAD" | ||
| 29 | |||
| 30 | |||
| 23 | typedef struct luaL_Reg { | 31 | typedef struct luaL_Reg { |
| 24 | const char *name; | 32 | const char *name; |
| 25 | lua_CFunction func; | 33 | lua_CFunction func; |
