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

Function set_nonstandard_symbol

CodeFormatLib/src/CodeFormatLib.cpp:481–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481int 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
499int set_clike_comments_symbol(lua_State *L) {
500 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
whatMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected