diff options
Diffstat (limited to '')
| -rw-r--r-- | lauxlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lauxlib.c,v 1.180 2009/02/13 19:39:34 roberto Exp roberto $ | 2 | ** $Id: lauxlib.c,v 1.181 2009/02/17 14:31:16 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 | */ |
| @@ -585,6 +585,7 @@ static int libsize (const luaL_Reg *l) { | |||
| 585 | 585 | ||
| 586 | LUALIB_API void luaL_register (lua_State *L, const char *libname, | 586 | LUALIB_API void luaL_register (lua_State *L, const char *libname, |
| 587 | const luaL_Reg *l) { | 587 | const luaL_Reg *l) { |
| 588 | lua_checkversion(L); | ||
| 588 | if (libname) { | 589 | if (libname) { |
| 589 | /* check whether lib already exists */ | 590 | /* check whether lib already exists */ |
| 590 | luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", 1); | 591 | luaL_findtable(L, LUA_REGISTRYINDEX, "_LOADED", 1); |
