From 0cea28a7859a2a82740e9201102c5e29df787ac8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 19 Feb 2009 14:15:13 -0300 Subject: better error messages for 'lua_checkversion' --- lapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 86b591c4..ea4d0f1f 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.68 2008/08/01 17:01:16 roberto Exp roberto $ +** $Id: lapi.c,v 2.69 2009/02/18 17:20:56 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -124,9 +124,9 @@ LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { LUA_API void lua_checkversion_ (lua_State *L, int version) { lua_lock(L); if (version != LUA_VERSION_NUM) - luaG_runerror(L, "application and Lua core using different Lua versions"); + luaG_runerror(L, "app./library not compiled with header " LUA_VERSION); if (G(L)->nilobjp != luaO_nilobject) - luaG_runerror(L, "application using two incompatible Lua VMs"); + luaG_runerror(L, "application using multiple Lua VMs"); lua_unlock(L); } -- cgit v1.2.3-55-g6feb