diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-20 12:02:20 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-20 12:02:20 +0000 |
| commit | da2341ec12128d3b4983a67d39aeaf76b1781fa8 (patch) | |
| tree | eab408f61804267fabb7151edce4410b0f05ddc2 /arch/x86_64/src/exception_handling/assert.cpp | |
| parent | 0d42fed17834a21d29032dd2d8e56e11596056bc (diff) | |
| download | teachos-da2341ec12128d3b4983a67d39aeaf76b1781fa8.tar.xz teachos-da2341ec12128d3b4983a67d39aeaf76b1781fa8.zip | |
Add printf like behaviour to assert
Diffstat (limited to 'arch/x86_64/src/exception_handling/assert.cpp')
| -rw-r--r-- | arch/x86_64/src/exception_handling/assert.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/x86_64/src/exception_handling/assert.cpp b/arch/x86_64/src/exception_handling/assert.cpp deleted file mode 100644 index 86696f8..0000000 --- a/arch/x86_64/src/exception_handling/assert.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "arch/exception_handling/assert.hpp" - -#include "arch/exception_handling/panic.hpp" - -namespace teachos::arch::exception_handling -{ - auto assert(bool condition, char const * message) -> void - { - if (condition) - { - return; - } - - panic("Assertion Violation: ", message); - } -} // namespace teachos::arch::exception_handling
\ No newline at end of file |
