mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
Everywhere: Remove all KERNEL #defines
This commit is contained in:
committed by
Andreas Kling
parent
de99dd2c89
commit
5ca2f4dfd7
@@ -6,20 +6,11 @@
|
||||
|
||||
#include <AK/Error.h>
|
||||
|
||||
#ifdef KERNEL
|
||||
# include <AK/Format.h>
|
||||
#endif
|
||||
|
||||
namespace AK {
|
||||
|
||||
Error Error::from_string_view_or_print_error_and_return_errno(StringView string_literal, [[maybe_unused]] int code)
|
||||
{
|
||||
#ifdef KERNEL
|
||||
dmesgln("{}", string_literal);
|
||||
return Error::from_errno(code);
|
||||
#else
|
||||
return Error::from_string_view(string_literal);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user