mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
'dynamic' namespace refactor (step 2)
This commit is contained in:
parent
d33edd4cd9
commit
8e83a07094
10 changed files with 44 additions and 51 deletions
|
|
@ -207,13 +207,13 @@ std::unique_ptr<Value> Parser::parseValue() {
|
|||
if (is_identifier_start(next)) {
|
||||
std::string literal = parseName();
|
||||
if (literal == "true") {
|
||||
return Value::boolean(true);
|
||||
return dynamic::value_of(true);
|
||||
} else if (literal == "false") {
|
||||
return Value::boolean(false);
|
||||
return dynamic::value_of(false);
|
||||
} else if (literal == "inf") {
|
||||
return Value::of(INFINITY);
|
||||
return dynamic::value_of(INFINITY);
|
||||
} else if (literal == "nan") {
|
||||
return Value::of(NAN);
|
||||
return dynamic::value_of(NAN);
|
||||
}
|
||||
throw error("invalid literal ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue