Skip to content

Commit

Permalink
fix engine for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Apr 26, 2020
1 parent 18dd280 commit b30b940
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lni/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,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("luject", argc, argv, lni_initalizer, luaopts);
tb_char_t* taskargv[] = {"lua", "-D", "lua.main", tb_null};
return xm_engine_run("luject", argc, argv, taskargv, lni_initalizer);
}

0 comments on commit b30b940

Please sign in to comment.