18 lines
575 B
C++
18 lines
575 B
C++
#pragma once
|
|
|
|
#include "asl/config.hpp"
|
|
|
|
#if ASL_COMPILER_CLANG_CL
|
|
#define ASL_DEBUG_BREAK() __debugbreak()
|
|
#elif ASL_COMPILER_CLANG
|
|
#define ASL_DEBUG_BREAK() __builtin_debugtrap()
|
|
#endif
|
|
|
|
#define ASL_ASSERT(...) \
|
|
if (__VA_ARGS__) {} \
|
|
else { ASL_DEBUG_BREAK(); }
|
|
|
|
#define ASL_ASSERT_RELEASE(...) \
|
|
if (__VA_ARGS__) {} \
|
|
else { ASL_DEBUG_BREAK(); }
|