Skip to content

Commit

Permalink
Minor rename
Browse files Browse the repository at this point in the history
  • Loading branch information
JeneLitsch committed Mar 15, 2022
1 parent d1df460 commit c816310
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ltnvm/TypeCheck.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace ltn::vm {
return val.type == Value::Type::EXTERNAL;
}

constexpr inline bool isClock(const Value & val) {
constexpr inline bool is_clock(const Value & val) {
return val.type == Value::Type::CLOCK;
}

Expand Down
4 changes: 2 additions & 2 deletions ltnvm/cast.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace ltn::vm::cast {
return ss.str();
}

if(isClock(value)) {
if(is_clock(value)) {
const auto & clock = heap.read<Clock>(value.u);
std::ostringstream ss;
ss << "<clock: " << clock.getSeconds() << "s>";
Expand Down Expand Up @@ -179,7 +179,7 @@ namespace ltn::vm::cast {
return parse_value<stx::float64_t>(str.str);
}

if (isClock(value)) {
if (is_clock(value)) {
const auto & clock = heap.read<Clock>(value.u);
return clock.getSeconds();
}
Expand Down
2 changes: 1 addition & 1 deletion ltnvm/memory/HeapGC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace ltn::vm {

if(is_fxptr(value)) return this->mark_fxptr(value);

if(isClock(value)) return this->mark_default(value);
if(is_clock(value)) return this->mark_default(value);

if(is_struct(value)) return this->mark_struct(value);
if(is_range(value)) return this->mark_range(value);
Expand Down

0 comments on commit c816310

Please sign in to comment.