diff --git a/src/ravi_jitshared.c b/src/ravi_jitshared.c index 457b06e..f9d727c 100644 --- a/src/ravi_jitshared.c +++ b/src/ravi_jitshared.c @@ -592,8 +592,12 @@ static const char Lua_header[] = " (ttisfloat(o) ? ((n) = fltvalue(o), 1) : \\\n" " (ttisinteger(o) ? ((n) = cast_num(ivalue(o)), 1) : 0))\n" "#define intop(op,v1,v2) l_castU2S(l_castS2U(v1) op l_castS2U(v2))\n" + "#define nan (0./0.)\n" + "#define inf (1./0.)\n" "#define luai_numunm(L,a) (-(a))\n"; +// FIXME - 'inf' and 'nan' above need to be sorted! + // We can only compile a subset of op codes // and not all features are supported bool raviJ_cancompile(Proto *p) { (void)p; return true; }