mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-11 22:32:29 +00:00
fumbling sv ctor again
This commit is contained in:
@@ -268,11 +268,16 @@ void IPSwitchCompiler::Parse(std::span<u8 const> bytes) {
|
|||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// remove trailing
|
// remove trailing; look at the char before, i.e
|
||||||
for (; p > sline.cbegin() && std::isspace(*p); --p)
|
// <aa >
|
||||||
|
// <aa -.>
|
||||||
|
// <aa-.>
|
||||||
|
// <a-.>
|
||||||
|
// <aa>
|
||||||
|
for (; p + 1 > sline.cbegin() && std::isspace(p[-1]); --p)
|
||||||
;
|
;
|
||||||
// now we have the preprocessed string ;)
|
// now we have the preprocessed string ;)
|
||||||
std::string_view pp_str(sline_start, size_t(std::distance(sline.cbegin(), p)));
|
std::string_view pp_str(sline_start, p);
|
||||||
if (pp_str.size() > 0 && !parse_line(pp_str)) {
|
if (pp_str.size() > 0 && !parse_line(pp_str)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user