| 497 | } |
| 498 | |
| 499 | int set_clike_comments_symbol(lua_State *L) { |
| 500 | int top = lua_gettop(L); |
| 501 | |
| 502 | try { |
| 503 | LuaCodeFormat::GetInstance().SupportCLikeComments(); |
| 504 | lua_pushboolean(L, true); |
| 505 | return 1; |
| 506 | } catch (std::exception &e) { |
| 507 | std::string err = e.what(); |
| 508 | lua_settop(L, top); |
| 509 | lua_pushboolean(L, false); |
| 510 | lua_pushlstring(L, err.c_str(), err.size()); |
| 511 | return 2; |
| 512 | } |
| 513 | |
| 514 | return 0; |
| 515 | } |
| 516 | |
| 517 | int spell_load_dictionary_from_path(lua_State *L) { |
| 518 | int top = lua_gettop(L); |
nothing calls this directly
no test coverage detected