summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-09 14:46:10 +0800
committerruki <[email protected]>2015-06-09 14:47:06 +0800
commitf6fec59106383347489ed77bb1896a9ccf5bbb2d (patch)
treed9465b98ec45ad0e08cc16b7864ea75e8d682214 /core/src/xmake/machine.c
parent2664a11c5ae2444241aa72346e7574279ac6b0bd (diff)
remove preprocessor
Diffstat (limited to 'core/src/xmake/machine.c')
-rwxr-xr-xcore/src/xmake/machine.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index 1fbfaaca4..6bf2c721f 100755
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -75,9 +75,6 @@ tb_int_t xm_path_is_absolute(lua_State* lua);
tb_int_t xm_string_endswith(lua_State* lua);
tb_int_t xm_string_startswith(lua_State* lua);
-// the preprocessor functions
-tb_int_t xm_preprocessor_loadx(lua_State* lua);
-
/* //////////////////////////////////////////////////////////////////////////////////////
* globals
*/
@@ -120,13 +117,6 @@ static luaL_Reg const g_string_functions[] =
, { tb_null, tb_null }
};
-// the preprocessor functions
-static luaL_Reg const g_preprocessor_functions[] =
-{
- { "loadx", xm_preprocessor_loadx }
-, { tb_null, tb_null }
-};
-
/* //////////////////////////////////////////////////////////////////////////////////////
* private implementation
*/
@@ -256,9 +246,6 @@ xm_machine_ref_t xm_machine_init()
// bind string functions
luaL_register(impl->lua, "string", g_string_functions);
- // bind preprocessor functions
- luaL_register(impl->lua, "preprocessor", g_preprocessor_functions);
-
// init host
#if defined(TB_CONFIG_OS_WINDOWS)
lua_pushstring(impl->lua, "windows");