Skip to content

Commit

Permalink
[squash] snake case variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Dec 19, 2017
1 parent 764e861 commit d0bccb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/llnode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,13 @@ bool ListCmd::DoExecute(SBDebugger d, char** cmd,


void InitDebugMode() {
bool isDebugMode = false;
bool is_debug_mode = false;
char* var = getenv("LLNODE_DEBUG");
if (var != nullptr && strlen(var) != 0) {
isDebugMode = true;
is_debug_mode = true;
}

v8::Error::SetDebugMode(isDebugMode);
v8::Error::SetDebugMode(is_debug_mode);
}

} // namespace llnode
Expand Down
4 changes: 2 additions & 2 deletions src/llv8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void LLV8::Load(SBTarget target) {
types.Assign(target, &common);
}

bool Error::isDebugMode = false;
bool Error::is_debug_mode = false;

Error::Error(bool failed, const char* format, ...) {
failed_ = failed;
Expand All @@ -72,7 +72,7 @@ Error::Error(bool failed, const char* format, ...) {


void Error::PrintInDebugMode(const char* format, ...) {
if (!isDebugMode) {
if (!is_debug_mode) {
return;
}
char fmt[kMaxMessageLength];
Expand Down
4 changes: 2 additions & 2 deletions src/llv8.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class Error {

inline const char* GetMessage() { return msg_.c_str(); }

static void SetDebugMode(bool mode) { isDebugMode = mode; }
static void SetDebugMode(bool mode) { is_debug_mode = mode; }

private:
bool failed_;
std::string msg_;
static const size_t kMaxMessageLength = 128;
static bool isDebugMode;
static bool is_debug_mode;
};

#define V8_VALUE_DEFAULT_METHODS(NAME, PARENT) \
Expand Down

0 comments on commit d0bccb0

Please sign in to comment.