| 479 | } |
| 480 | |
| 481 | int set_nonstandard_symbol(lua_State *L) { |
| 482 | int top = lua_gettop(L); |
| 483 | |
| 484 | try { |
| 485 | LuaCodeFormat::GetInstance().SupportNonStandardSymbol(); |
| 486 | lua_pushboolean(L, true); |
| 487 | return 1; |
| 488 | } catch (std::exception &e) { |
| 489 | std::string err = e.what(); |
| 490 | lua_settop(L, top); |
| 491 | lua_pushboolean(L, false); |
| 492 | lua_pushlstring(L, err.c_str(), err.size()); |
| 493 | return 2; |
| 494 | } |
| 495 | |
| 496 | return 0; |
| 497 | } |
| 498 | |
| 499 | int set_clike_comments_symbol(lua_State *L) { |
| 500 | int top = lua_gettop(L); |
nothing calls this directly
no test coverage detected