mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 23:41:50 +00:00
toml parser 'inf' and 'nan' support
This commit is contained in:
parent
65303598ca
commit
9e7681ec6e
1 changed files with 8 additions and 0 deletions
|
|
@ -226,6 +226,14 @@ void Reader::readSection(Section* section /*nullable*/) {
|
||||||
if (section) {
|
if (section) {
|
||||||
section->set(name, flag);
|
section->set(name, flag);
|
||||||
}
|
}
|
||||||
|
} else if (identifier == "inf") {
|
||||||
|
if (section) {
|
||||||
|
section->set(name, INFINITY);
|
||||||
|
}
|
||||||
|
} else if (identifier == "nan") {
|
||||||
|
if (section) {
|
||||||
|
section->set(name, NAN);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (c == '"' || c == '\'') {
|
} else if (c == '"' || c == '\'') {
|
||||||
pos++;
|
pos++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue