diff options
| author | ruki <[email protected]> | 2020-04-26 11:33:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-26 11:35:18 +0800 |
| commit | 08b8050316bf8af82e6c6a2ed30b9bd03b4983f0 (patch) | |
| tree | 1a2a73f538a22ce51f8f454a2cc6f3e88e2ee82d /tests | |
| parent | 0b6425642adb9c562124ddf983da21b585e29e10 (diff) | |
improve engine
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/projects/xmake_cli/hello/src/lni/main.c | 8 | ||||
| -rw-r--r-- | tests/projects/xmake_cli/xmake/src/main.c | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/tests/projects/xmake_cli/hello/src/lni/main.c b/tests/projects/xmake_cli/hello/src/lni/main.c index 298d34d57..dfc28bb6a 100644 --- a/tests/projects/xmake_cli/hello/src/lni/main.c +++ b/tests/projects/xmake_cli/hello/src/lni/main.c @@ -16,10 +16,6 @@ static tb_void_t lni_initalizer(xm_engine_ref_t engine, lua_State* lua) } tb_int_t main(tb_int_t argc, tb_char_t** argv) { -#ifdef __tb_debug__ - tb_char_t const* luaopts = "-vD"; -#else - tb_char_t const* luaopts = "-D"; -#endif - return xm_engine_run_lua("hello", argc, argv, lni_initalizer, luaopts); + tb_char_t* taskargv = {"lua", "-D", "lua.main", tb_null}; + return xm_engine_run("hello", argc, argv, taskargv, lni_initalizer); } diff --git a/tests/projects/xmake_cli/xmake/src/main.c b/tests/projects/xmake_cli/xmake/src/main.c index 852658071..975f51c38 100644 --- a/tests/projects/xmake_cli/xmake/src/main.c +++ b/tests/projects/xmake_cli/xmake/src/main.c @@ -2,5 +2,5 @@ tb_int_t main(tb_int_t argc, tb_char_t** argv) { - return xm_engine_run("xmake", argc, argv, tb_null); + return xm_engine_run("xmake", argc, argv, tb_null, tb_null); } |
