Files
melonDS/src/frontend/duckstation/duckstation_compat.h
2022-11-25 23:47:36 +01:00

17 lines
346 B
C

#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