You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
685 B

#pragma once
#include "miniwin_sdl.h"
#include <assert.h>
#include <stdio.h>
#define eprintf(...) fprintf(stderr, __VA_ARGS__)
#define UNIMPLEMENTED() \
{ \
eprintf("UNIMPLEMENTED: %s @ %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
abort(); \
}
#define DUMMY() /*eprintf("DUMMY: %s @ %s:%d\n", __FUNCTION__, __FILE__, __LINE__)*/
#define DUMMY_ONCE() \
{ \
static bool dummy_shown = false; \
if (!dummy_shown) { \
DUMMY(); \
dummy_shown = true; \
} \
}
#define DUMMY_PRINT(fmt, ...) eprintf("DUMMY: %s : " fmt "\n", __FUNCTION__, __VA_ARGS__)
static inline const char *nullstr(const char *a)
{
return a ? a : "(null)";
}