Skip to content

Commit

Permalink
style: Update method names to follow PascalCase convention
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiequan committed Feb 22, 2024
1 parent c596cf2 commit 0832024
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Debugger: public std::enable_shared_from_this<Debugger>

void ClearVariableArenaRef();

void enableDisplayCustomTypeInfo();
void EnableDisplayCustomTypeInfo();
bool RegisterTypeName(const std::string& typeName, std::string& err);

private:
Expand Down
2 changes: 1 addition & 1 deletion emmy_debugger/include/emmy_debugger/emmy_facade.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class EmmyFacade
bool PipeListen(lua_State* L, const std::string& name, std::string& err);
bool PipeConnect(lua_State* L, const std::string& name, std::string& err);
int BreakHere(lua_State* L);
bool enableDisplayCustomTypeInfo(lua_State *L, std::string &err);
bool EnableDisplayCustomTypeInfo(lua_State *L, std::string &err);
bool RegisterTypeName(lua_State *L, const std::string &typeName, std::string &err);

int OnConnect(bool suc);
Expand Down
2 changes: 1 addition & 1 deletion emmy_debugger/src/debugger/emmy_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ int Debugger::GetTypeFromName(const char* typeName) {
return -1; // 未知类型
}

void Debugger::enableDisplayCustomTypeInfo() {
void Debugger::EnableDisplayCustomTypeInfo() {
displayCustomTypeInfo = true;
}

Expand Down
2 changes: 1 addition & 1 deletion emmy_debugger/src/debugger/emmy_debugger_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int stop(lua_State* L)
int enableDisplayCustomTypeInfo(lua_State* L)
{
std::string err;
const auto suc = EmmyFacade::Get().enableDisplayCustomTypeInfo(L, err);
const auto suc = EmmyFacade::Get().EnableDisplayCustomTypeInfo(L, err);
lua_pushboolean(L, suc);
if (suc) return 1;
lua_pushstring(L, err.c_str());
Expand Down
4 changes: 2 additions & 2 deletions emmy_debugger/src/emmy_facade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ void EmmyFacade::Attach(lua_State *L) {
lua_sethook(L, EmmyFacade::HookLua, LUA_MASKCALL | LUA_MASKLINE | LUA_MASKRET, 0);
}

bool EmmyFacade::enableDisplayCustomTypeInfo(lua_State *L, std::string &err) {
bool EmmyFacade::EnableDisplayCustomTypeInfo(lua_State *L, std::string &err) {
auto debugger = GetDebugger(L);
if (!debugger) {
err = "Debugger does not exist";
return false;
}
debugger->enableDisplayCustomTypeInfo();
debugger->EnableDisplayCustomTypeInfo();
return true;
}

Expand Down

0 comments on commit 0832024

Please sign in to comment.