is represented by the decimal number xxyyzz.
</p>
+<h3 id="jit_os"><tt>jit.os</tt></h3>
+<p>
+Contains the target OS name:
+"Windows", "Linux", "OSX", "BSD", "Posix" or "Other".
+</p>
+
<h3 id="jit_arch"><tt>jit.arch</tt></h3>
<p>
-Contains the target architecture name (CPU and optional ABI).
+Contains the target architecture name:
+"x86", "x64" or "ppcspe".
</p>
<h2 id="jit_opt"><tt>jit.opt.*</tt> — JIT compiler optimization control</h2>
return 0;
}
+LJLIB_PUSH(top-5) LJLIB_SET(os)
LJLIB_PUSH(top-4) LJLIB_SET(arch)
LJLIB_PUSH(top-3) LJLIB_SET(version_num)
LJLIB_PUSH(top-2) LJLIB_SET(version)
LUALIB_API int luaopen_jit(lua_State *L)
{
+ lua_pushliteral(L, LJ_OS_NAME);
lua_pushliteral(L, LJ_ARCH_NAME);
lua_pushinteger(L, LUAJIT_VERSION_NUM);
lua_pushliteral(L, LUAJIT_VERSION);