Everywhere: Remove all KERNEL #defines

This commit is contained in:
Tim Ledbetter 2024-06-17 23:12:53 +01:00 committed by Andreas Kling
commit 5ca2f4dfd7
Notes: sideshowbarker 2024-07-16 23:17:55 +09:00
73 changed files with 116 additions and 808 deletions

View file

@ -211,11 +211,6 @@ ErrorOr<JsonValue> JsonParser::parse_number()
}
auto fallback_to_double_parse = [&]() -> ErrorOr<JsonValue> {
#ifdef KERNEL
# error JSONParser is currently not available for the Kernel because it disallows floating point. \
If you want to make this KERNEL compatible you can just make this fallback_to_double \
function fail with an error in KERNEL mode.
#endif
// FIXME: Since we know all the characters so far are ascii digits (and one . or e) we could
// use that in the floating point parser.