diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-25 18:18:28 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-25 18:18:56 +0100 |
| commit | 8769270744d26e8884cc819bc86c5f5514be5c78 (patch) | |
| tree | 0b0ae4fed20051d41b928d423aa57e460975d7fb /include/CompilerKit/Utilities | |
| parent | 4ac738d6f88aba0a3222334422e4360b5d25b8ed (diff) | |
chore: frontend improvements, fixing bug in if condition generation.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit/Utilities')
| -rw-r--r-- | include/CompilerKit/Utilities/Compiler.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/CompilerKit/Utilities/Compiler.h b/include/CompilerKit/Utilities/Compiler.h index 621f229..cd28567 100644 --- a/include/CompilerKit/Utilities/Compiler.h +++ b/include/CompilerKit/Utilities/Compiler.h @@ -26,8 +26,8 @@ #define kWhite "\e[0;97m" #define kYellow "\e[0;33m" -#define kStdOut (std::cout << kRed << "drv: " << kWhite) -#define kStdErr (std::cerr << kYellow << "drv: " << kWhite) +#define kStdOut (std::cout << kRed << "Nectar: " << kWhite) +#define kStdErr (std::cerr << kRed << "Nectar: " << kWhite) #define kStdEndl std::endl #define kPrintF kStdOut #define kPrintErr kStdErr @@ -50,7 +50,7 @@ struct Blob final { inline void print_error(STLString reason, STLString file) noexcept { if (reason[0] == '\n') reason.erase(0, 1); - kStdErr << reason << kBlank << std::endl; + kStdErr << file << ": " << reason << kBlank << std::endl; ++kAcceptableErrors; if (kAcceptableErrors > kErrorLimit) std::exit(NECTAR_EXEC_ERROR); @@ -59,7 +59,7 @@ inline void print_error(STLString reason, STLString file) noexcept { inline void print_warning(STLString reason, STLString file) noexcept { if (reason[0] == '\n') reason.erase(0, 1); - kStdOut << kYellow << reason << kBlank << std::endl; + kStdOut << file << ": " << kYellow << reason << kBlank << std::endl; } /// @internal |
