Commit 8bce7937 authored by philip's avatar philip Committed by Nathaniel Wesley Filardo
Browse files

Conditionalize int2float on lua 5.3

parent f316ebf7
...@@ -644,6 +644,7 @@ static int node_writercr (lua_State *L) { ...@@ -644,6 +644,7 @@ static int node_writercr (lua_State *L) {
return 1; return 1;
} }
#if LUA_VERSION_NUM > 501
static int node_int2float(lua_State *L) { static int node_int2float(lua_State *L) {
union { union {
lua_Integer i; lua_Integer i;
...@@ -666,6 +667,7 @@ static int node_float2int(lua_State *L) { ...@@ -666,6 +667,7 @@ static int node_float2int(lua_State *L) {
return 1; return 1;
} }
#endif #endif
#endif
// Lua: n = node.LFS.reload(lfsimage) // Lua: n = node.LFS.reload(lfsimage)
static int node_lfsreload (lua_State *L) { static int node_lfsreload (lua_State *L) {
...@@ -932,13 +934,16 @@ LROT_BEGIN(node, NULL, 0) ...@@ -932,13 +934,16 @@ LROT_BEGIN(node, NULL, 0)
LROT_FUNCENTRY( restore, node_restore ) LROT_FUNCENTRY( restore, node_restore )
LROT_FUNCENTRY( random, node_random ) LROT_FUNCENTRY( random, node_random )
LROT_FUNCENTRY( stripdebug, node_stripdebug ) LROT_FUNCENTRY( stripdebug, node_stripdebug )
LROT_FUNCENTRY( peek, node_peek )
#if LUA_VERSION_NUM == 501 #if LUA_VERSION_NUM == 501
LROT_TABENTRY( egc, node_egc ) LROT_TABENTRY( egc, node_egc )
#endif #endif
#ifdef DEVELOPMENT_TOOLS #ifdef DEVELOPMENT_TOOLS
LROT_FUNCENTRY( osprint, node_osprint ) LROT_FUNCENTRY( osprint, node_osprint )
#if LUA_VERSION_NUM > 501
LROT_FUNCENTRY( int2float, node_int2float ) LROT_FUNCENTRY( int2float, node_int2float )
LROT_FUNCENTRY( float2int, node_float2int ) LROT_FUNCENTRY( float2int, node_float2int )
#endif
#endif #endif
LROT_FUNCENTRY( getpartitiontable, node_getpartitiontable ) LROT_FUNCENTRY( getpartitiontable, node_getpartitiontable )
LROT_FUNCENTRY( setpartitiontable, node_setpartitiontable ) LROT_FUNCENTRY( setpartitiontable, node_setpartitiontable )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment