diff options
| author | ruki <[email protected]> | 2020-04-26 11:48:22 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-26 11:48:22 +0800 |
| commit | cb48c14f9f6e0a481dd405244ca92a650d6afe0e (patch) | |
| tree | 0cc4bcde27b1004222d7752c7fcf01754146bb9a | |
| parent | d4f19159a6e63cfbb879bc1f9e9ed3de3eb05d0e (diff) | |
fix tests
| -rw-r--r-- | tests/projects/xmake_cli/hello/src/lni/main.c | 2 | ||||
| -rw-r--r-- | xmake/templates/c++/xmake.cli/project/src/lni/main.cpp | 2 | ||||
| -rw-r--r-- | xmake/templates/c/xmake.cli/project/src/lni/main.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/projects/xmake_cli/hello/src/lni/main.c b/tests/projects/xmake_cli/hello/src/lni/main.c index dfc28bb6a..3067e9b39 100644 --- a/tests/projects/xmake_cli/hello/src/lni/main.c +++ b/tests/projects/xmake_cli/hello/src/lni/main.c @@ -16,6 +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) { - tb_char_t* taskargv = {"lua", "-D", "lua.main", tb_null}; + tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null}; return xm_engine_run("hello", argc, argv, taskargv, lni_initalizer); } diff --git a/xmake/templates/c++/xmake.cli/project/src/lni/main.cpp b/xmake/templates/c++/xmake.cli/project/src/lni/main.cpp index ad256efce..8dd3811f6 100644 --- a/xmake/templates/c++/xmake.cli/project/src/lni/main.cpp +++ b/xmake/templates/c++/xmake.cli/project/src/lni/main.cpp @@ -16,6 +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) { - tb_char_t* taskargv = {"lua", "-D", "lua.main", tb_null}; + tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null}; return xm_engine_run("${TARGETNAME}", argc, argv, taskargv, lni_initalizer); } diff --git a/xmake/templates/c/xmake.cli/project/src/lni/main.c b/xmake/templates/c/xmake.cli/project/src/lni/main.c index ad256efce..8dd3811f6 100644 --- a/xmake/templates/c/xmake.cli/project/src/lni/main.c +++ b/xmake/templates/c/xmake.cli/project/src/lni/main.c @@ -16,6 +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) { - tb_char_t* taskargv = {"lua", "-D", "lua.main", tb_null}; + tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null}; return xm_engine_run("${TARGETNAME}", argc, argv, taskargv, lni_initalizer); } |
