summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-13 09:40:49 +0800
committerruki <[email protected]>2015-05-13 09:40:49 +0800
commitba92342286d9fabb29c97acac4c5deed0906a25b (patch)
treec651ec1678d84498dfd6d3dbd6ba585bd4abbdde /core/src
parent905e90debb2a79993b16d5761c2eced8fdfad4cc (diff)
add host option
Diffstat (limited to 'core/src')
-rwxr-xr-xcore/src/xmake/machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index 659eb8afe..a1988203a 100755
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -210,7 +210,7 @@ xm_machine_ref_t xm_machine_init()
// bind string functions
luaL_register(impl->lua, "string", g_string_functions);
- // init platform
+ // init host
#if defined(TB_CONFIG_OS_WINDOWS)
lua_pushstring(impl->lua, "windows");
#elif defined(TB_CONFIG_OS_MAC)
@@ -226,7 +226,7 @@ xm_machine_ref_t xm_machine_init()
#else
lua_pushstring(impl->lua, "unknown");
#endif
- lua_setglobal(impl->lua, "_PLAT");
+ lua_setglobal(impl->lua, "_HOST");
// init architecture
#if defined(TB_ARCH_x86) || defined(TB_CONFIG_OS_WINDOWS)