aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/duckstation/duckstation_compat.h
blob: fed378056c36562e6f116c900566209050c8aad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef DUCKSTATION_COMPAT_H
#define DUCKSTATION_COMPAT_H

#include "../types.h"

#include <assert.h>

#define ALWAYS_INLINE __attribute__((always_inline)) inline

#define AssertMsg(cond, msg) assert(cond && msg)
#define Assert(cond) assert(cond)

#define Panic(msg) assert(false && msg)

#define UnreachableCode() __builtin_unreachable()

#endif