summaryrefslogtreecommitdiff
path: root/core/src/xmake/machine.c
diff options
context:
space:
mode:
authorruki <[email protected]>2015-05-12 09:06:03 +0800
committerruki <[email protected]>2015-05-12 09:06:21 +0800
commit7a187d3be10e1aeced3b1cc84a1d3b458ecfc53d (patch)
tree19a47b69d2cc1b8684b890e24ce3cc2fa06cc54f /core/src/xmake/machine.c
parenta0185c1df5558103ca4c510036088a17bf379c94 (diff)
enable boolean for only key option and add is_absolute
Diffstat (limited to 'core/src/xmake/machine.c')
-rwxr-xr-xcore/src/xmake/machine.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c
index a6bcf0e35..7dcd29e65 100755
--- a/core/src/xmake/machine.c
+++ b/core/src/xmake/machine.c
@@ -55,6 +55,7 @@ typedef struct __xm_machine_impl_t
// the path functions
tb_int_t xm_path_absolute(lua_State* lua);
tb_int_t xm_path_translate(lua_State* lua);
+tb_int_t xm_path_is_absolute(lua_State* lua);
// the string functions
tb_int_t xm_string_startswith(lua_State* lua);
@@ -68,6 +69,7 @@ static luaL_Reg const g_path_functions[] =
{
{ "absolute", xm_path_absolute }
, { "translate", xm_path_translate }
+, { "is_absolute", xm_path_is_absolute }
, { tb_null, tb_null }
};