diff options
| -rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 2.68 2008/08/01 17:01:16 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.69 2009/02/18 17:20:56 roberto Exp roberto $ |
| 3 | ** Lua API | 3 | ** Lua API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -124,9 +124,9 @@ LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { | |||
| 124 | LUA_API void lua_checkversion_ (lua_State *L, int version) { | 124 | LUA_API void lua_checkversion_ (lua_State *L, int version) { |
| 125 | lua_lock(L); | 125 | lua_lock(L); |
| 126 | if (version != LUA_VERSION_NUM) | 126 | if (version != LUA_VERSION_NUM) |
| 127 | luaG_runerror(L, "application and Lua core using different Lua versions"); | 127 | luaG_runerror(L, "app./library not compiled with header " LUA_VERSION); |
| 128 | if (G(L)->nilobjp != luaO_nilobject) | 128 | if (G(L)->nilobjp != luaO_nilobject) |
| 129 | luaG_runerror(L, "application using two incompatible Lua VMs"); | 129 | luaG_runerror(L, "application using multiple Lua VMs"); |
| 130 | lua_unlock(L); | 130 | lua_unlock(L); |
| 131 | } | 131 | } |
| 132 | 132 | ||
