mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Everywhere: Remove all KERNEL #define
s
This commit is contained in:
parent
de99dd2c89
commit
5ca2f4dfd7
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/tcl3
Commit: 5ca2f4dfd7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/195
73 changed files with 116 additions and 808 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue