add wayland support with melonds/duckstation method

This commit is contained in:
Miguel 2024-04-11 13:11:42 +02:00 committed by GitHub
parent e26ceabfd1
commit 029a6bb72e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 10907 additions and 0 deletions

View file

@ -0,0 +1,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