From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/srclua5/il.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'iup/srclua5/il.h') diff --git a/iup/srclua5/il.h b/iup/srclua5/il.h index 5ef6b86..635d089 100755 --- a/iup/srclua5/il.h +++ b/iup/srclua5/il.h @@ -149,6 +149,13 @@ Ihandle *iuplua_checkihandleornil(lua_State *L, int pos); */ void iuplua_removeihandle(lua_State *L, Ihandle *ih); +#if LUA_VERSION_NUM > 501 +#define iuplua_getn(L,i) ((int)lua_rawlen(L, i)) +#else +#define LUA_OK 0 +#define iuplua_getn(L,i) ((int)lua_objlen(L, i)) +#endif + #ifdef __cplusplus } -- cgit v1.2.3