diff options
Diffstat (limited to 'Comm')
| -rw-r--r-- | Comm/herror.hxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Comm/herror.hxx b/Comm/herror.hxx index bad6f50c..1115e357 100644 --- a/Comm/herror.hxx +++ b/Comm/herror.hxx @@ -8,15 +8,19 @@ #include <Comm/newstd.hxx> -#define ErrLocalIsOk() (kLastError == kErrorSuccess) -#define ErrLocalFailed() (kLastError != kErrorSuccess) -#define ErrLocal() kLastError +#ifdef __KERNEL__ +#error !!! including header in kernel mode !!! +#endif // __KERNEL__ + +#define ErrLocalIsOk() (kLastError == kErrorSuccess) +#define ErrLocalFailed() (kLastError != kErrorSuccess) +#define ErrLocal() (kLastError) typedef SInt32 HError; inline constexpr HError kErrorSuccess = 0; inline constexpr HError kErrorExecutable = 33; -inline constexpr HError kErrorExecutableLib = 34; // no such library!!! +inline constexpr HError kErrorExecutableLib = 34; inline constexpr HError kErrorFileNotFound = 35; inline constexpr HError kErrorDirectoryNotFound = 36; inline constexpr HError kErrorDiskReadOnly = 37; |
