MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / set_clike_comments_symbol

Function set_clike_comments_symbol

CodeFormatLib/src/CodeFormatLib.cpp:499–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499int 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
517int spell_load_dictionary_from_path(lua_State *L) {
518 int top = lua_gettop(L);

Callers

nothing calls this directly

Calls 7

lua_gettopFunction · 0.85
lua_pushbooleanFunction · 0.85
lua_settopFunction · 0.85
lua_pushlstringFunction · 0.85
SupportCLikeCommentsMethod · 0.45
whatMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected