diff options
author | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2019-08-04 09:53:50 +0000 |
---|---|---|
committer | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2019-08-04 09:53:50 +0000 |
commit | 5c4f2bd4d38b4865ff79287b62c31cac5b655301 (patch) | |
tree | 84fab194955e859fd62bf73201d5e96876f4d143 /tools/rsfont/global.h | |
parent | 0a3b060d298bfb89e83d21d9b7b9f96a07994f41 (diff) |
Add tools
Diffstat (limited to 'tools/rsfont/global.h')
-rw-r--r-- | tools/rsfont/global.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/rsfont/global.h b/tools/rsfont/global.h new file mode 100644 index 0000000..65dd351 --- /dev/null +++ b/tools/rsfont/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 |