summaryrefslogtreecommitdiff
path: root/iup/srclua5/il.h
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 02:26:30 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 02:32:26 +0200
commit7505e88db66798b2b8fcdff2d92a7136cd826b5b (patch)
treeb6ced565318f8e8112e35cb0ad53abe4212ef8de /iup/srclua5/il.h
parente9a184546b18cf3b796bd560561f312934004c54 (diff)
Upgrading to IUP 3.2 - and cleaning up.
Diffstat (limited to 'iup/srclua5/il.h')
-rwxr-xr-xiup/srclua5/il.h7
1 files changed, 7 insertions, 0 deletions
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
}