diff options
Diffstat (limited to 'linit.c')
| -rw-r--r-- | linit.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: linit.c,v 1.37 2014/12/09 15:00:17 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.38 2015/01/05 13:48:33 roberto Exp roberto $ |
| 3 | ** Initialization of libraries for lua.c and other clients | 3 | ** Initialization of libraries for lua.c and other clients |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -18,10 +18,10 @@ | |||
| 18 | ** open the library, which is already linked to the application. | 18 | ** open the library, which is already linked to the application. |
| 19 | ** For that, do the following code: | 19 | ** For that, do the following code: |
| 20 | ** | 20 | ** |
| 21 | ** luaL_getsubtable(L, LUA_REGISTRYINDEX, "_PRELOAD"); | 21 | ** luaL_getsubtable(L, LUA_REGISTRYINDEX, LUA_PRELOAD_TABLE); |
| 22 | ** lua_pushcfunction(L, luaopen_modname); | 22 | ** lua_pushcfunction(L, luaopen_modname); |
| 23 | ** lua_setfield(L, -2, modname); | 23 | ** lua_setfield(L, -2, modname); |
| 24 | ** lua_pop(L, 1); // remove _PRELOAD table | 24 | ** lua_pop(L, 1); // remove PRELOAD table |
| 25 | */ | 25 | */ |
| 26 | 26 | ||
| 27 | #include "lprefix.h" | 27 | #include "lprefix.h" |
