citra/src/citra_qt/externals/duckstation/duckstation_compat.h

17 lines
No EOL
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