mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-03 17:25:42 -04:00
15 lines
670 B
C++
15 lines
670 B
C++
#pragma once
|
|
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
|
|
#define BISCUIT_ASSERT(condition) \
|
|
do { \
|
|
if (!(condition)) { \
|
|
std::printf("Assertion failed (%s)\nin %s, function %s line %i\n", \
|
|
#condition, \
|
|
__FILE__, __func__, __LINE__); \
|
|
std::abort(); \
|
|
} \
|
|
} while (false)
|