19#define require( expr ) assert( expr )
26#define debug_printf (1) ? (void) 0 : blargg_dprintf_
32#define check( expr ) ((void) 0)
36#define RETURN_ERR( expr ) do { \
37 blargg_err_t blargg_return_err_ = (expr); \
38 if ( blargg_return_err_ ) return blargg_return_err_; \
43#define CHECK_ALLOC( ptr ) do { if ( (ptr) == 0 ) return "Out of memory"; } while ( 0 )
49#define DEF_MIN_MAX( type ) \
50 static inline type min( type x, type y ) { if ( x < y ) return x; return y; }\
51 static inline type max( type x, type y ) { if ( y < x ) return x; return y; }
92 #if defined (_WIN32) && defined(BLARGG_BUILD_DLL)
93 #define BLARGG_EXPORT __declspec(dllexport)
94 #elif defined (LIBGME_VISIBILITY)
95 #define BLARGG_EXPORT __attribute__((visibility ("default")))
102#define BLARGG_CHECK_ALLOC CHECK_ALLOC
103#define BLARGG_RETURN_ERR RETURN_ERR
106#ifdef BLARGG_SOURCE_BEGIN
107 #include BLARGG_SOURCE_BEGIN
#define byte
Definition blargg_source.h:87
static void blargg_dprintf_(const char *,...)
Definition blargg_source.h:24
#define DEF_MIN_MAX(type)
Definition blargg_source.h:49