diff options
author | xenonnsmb <xenonnsmb@users.noreply.github.com> | 2017-12-03 19:55:01 -0600 |
---|---|---|
committer | xenonnsmb <xenonnsmb@users.noreply.github.com> | 2017-12-03 19:55:01 -0600 |
commit | e649e3d2481faef109006b9157eeb22e1bff9fe2 (patch) | |
tree | 3348ffb6bbe7358a4082059960ef6bea8cf7e636 /tools/gbagfx/global.h | |
parent | eeaa59d8376045ddf008276e6c13c860f23eedaa (diff) |
adding tools from pokeruby
Diffstat (limited to 'tools/gbagfx/global.h')
-rw-r--r-- | tools/gbagfx/global.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/gbagfx/global.h b/tools/gbagfx/global.h new file mode 100644 index 000000000..65dd351d2 --- /dev/null +++ b/tools/gbagfx/global.h @@ -0,0 +1,31 @@ +// Copyright (c) 2015 YamaArashi + +#ifndef GLOBAL_H +#define GLOBAL_H + +#include <stdio.h> +#include <stdlib.h> + +#ifdef _MSC_VER + +#define FATAL_ERROR(format, ...) \ +do { \ + fprintf(stderr, format, __VA_ARGS__); \ + exit(1); \ +} while (0) + +#define UNUSED + +#else + +#define FATAL_ERROR(format, ...) \ +do { \ + fprintf(stderr, format, ##__VA_ARGS__); \ + exit(1); \ +} while (0) + +#define UNUSED __attribute__((__unused__)) + +#endif // _MSC_VER + +#endif // GLOBAL_H |