diff options
Diffstat (limited to 'src/host/premake.c')
-rwxr-xr-x[-rw-r--r--] | src/host/premake.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/host/premake.c b/src/host/premake.c index 01beb59..802b6f1 100644..100755 --- a/src/host/premake.c +++ b/src/host/premake.c @@ -56,7 +56,11 @@ static const luaL_Reg string_functions[] = { { NULL, NULL } }; - +static const luaL_Reg host_functions[] = +{ + { "windows_is_64bit_running_under_wow", windows_is_64bit_running_under_wow }, + { NULL, NULL } +}; /** * Program entry point. @@ -72,7 +76,8 @@ int main(int argc, const char** argv) luaL_register(L, "path", path_functions); luaL_register(L, "os", os_functions); luaL_register(L, "string", string_functions); - + luaL_register(L, "host", host_functions); + /* push the application metadata */ lua_pushstring(L, LUA_COPYRIGHT); lua_setglobal(L, "_COPYRIGHT"); |