diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-22 09:11:15 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-22 09:11:15 +0200 |
| commit | ca022f27844a5475dab608bd1970c05494a67290 (patch) | |
| tree | 97cd0405c51c9c1036c2b3376626e5d8ca0baf06 /dev/LibCompiler/Detail | |
| parent | 96ea259e3e3a3b1be7d0e3b589063340fc48cd2e (diff) | |
feat(LibCompiler): Validating ::Compile.
what?
- The C++DRV crashes because of a bogus vector, after ::Compile gets
called.
- I have to figure out where the vector gets corrupted.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/Detail')
| -rw-r--r-- | dev/LibCompiler/Detail/ClUtils.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dev/LibCompiler/Detail/ClUtils.h b/dev/LibCompiler/Detail/ClUtils.h index 7a400b4..f7811e7 100644 --- a/dev/LibCompiler/Detail/ClUtils.h +++ b/dev/LibCompiler/Detail/ClUtils.h @@ -36,7 +36,7 @@ namespace Detail { inline void print_error(std::string reason, std::string file) noexcept { if (reason[0] == '\n') reason.erase(0, 1); - kStdErr << kRed << reason << kBlank << std::endl; + kStdErr << kRed << reason << kBlank << std::endl; if (kAcceptableErrors > kErrorLimit) std::exit(LIBCOMPILER_EXEC_ERROR); @@ -46,7 +46,7 @@ inline void print_error(std::string reason, std::string file) noexcept { inline void print_warning(std::string reason, std::string file) noexcept { if (reason[0] == '\n') reason.erase(0, 1); - kStdOut << kYellow << reason << kBlank << std::endl; + kStdOut << kYellow << reason << kBlank << std::endl; } /// @internal @@ -54,8 +54,7 @@ inline void print_warning(std::string reason, std::string file) noexcept { inline void drv_segfault_handler(std::int32_t id) { switch (id) { case SIGSEGV: { - kStdErr << "SIGSEGV: Please report this on the GitHub issues page." << kBlank - << std::endl; + kStdErr << "SIGSEGV: Please report this on the GitHub issues page." << kBlank << std::endl; break; } case SIGABRT: { |
