MU Library
assert.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: Apache-2.0
2 // Copyright 2024 XCENA Inc.
3 
4 #pragma once
5 
6 #include <assert.h>
7 
8 namespace mu
9 {
10 
22 void Assert(bool cond, const char* file = __builtin_FILE(), const char* func = __builtin_FUNCTION(), int line = __builtin_LINE());
23 
31 void exit();
32 
33 } // namespace mu
Definition: assert.hpp:9
void Assert(bool cond, const char *file=__builtin_FILE(), const char *func=__builtin_FUNCTION(), int line=__builtin_LINE())
Assertion function for runtime checks.
void exit()
Terminates the MU kernel execution.