Skip to content

Commit

Permalink
Added FIXME and STUBBED macros
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 6, 2016
1 parent a13361e commit 97ced67
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lx_loader.h
Expand Up @@ -18,6 +18,32 @@ typedef int32_t sint32;

typedef unsigned int uint;

#ifndef _STUBBED
#define _STUBBED(x, what) do { \
static int seen_this = 0; \
if (!seen_this) { \
seen_this = 1; \
fprintf(stderr, "2INE " what ": %s at %s (%s:%d)\n", x, __FUNCTION__, __FILE__, __LINE__); \
} \
} while (0)
#endif

#if 1
#ifndef STUBBED
#define STUBBED(x) _STUBBED(x, "STUBBED")
#endif
#ifndef FIXME
#define FIXME(x) _STUBBED(x, "FIXME")
#endif
#endif

#ifndef STUBBED
#define STUBBED(x) do {} while (0)
#endif
#ifndef FIXME
#define FIXME(x) do {} while (0)
#endif

#pragma pack(push, 1)
typedef struct LxHeader
{
Expand Down

0 comments on commit 97ced67

Please sign in to comment.