diff options
author | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2019-08-04 10:18:13 +0000 |
---|---|---|
committer | nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> | 2019-08-04 10:18:13 +0000 |
commit | ba6f243c728de5d5c024aeb177026bcc59909e2e (patch) | |
tree | af8fdeb1c6cdf9cd8584f0d693a4049bfc408b9d /tools/br_ips/global.h | |
parent | 6211b0c5ecbe4a43aa3f6e8fd96e99af29caa77a (diff) | |
parent | 250a331df9dbd312d572aaf0d629503417cfc9d4 (diff) |
Forgot upstream tools tracking
Diffstat (limited to 'tools/br_ips/global.h')
-rw-r--r-- | tools/br_ips/global.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/br_ips/global.h b/tools/br_ips/global.h new file mode 100644 index 0000000..b82c516 --- /dev/null +++ b/tools/br_ips/global.h @@ -0,0 +1,27 @@ +#ifndef GUARD_BR_IPS_GLOBAL_H +#define GUARD_BR_IPS_GLOBAL_H + +#ifdef _MSC_VER + +#define FATAL_ERROR(format, ...) \ +do { \ + fprintf(stderr, format, __VA_ARGS__); \ + exit(1); \ +} while (0) + +#else + +#define FATAL_ERROR(format, ...) \ +do { \ + fprintf(stderr, format, ##__VA_ARGS__); \ + exit(1); \ +} while (0) + +#endif // _MSC_VER + +typedef struct Hunk { + uint32_t offset; + size_t size; +} hunk_t; + +#endif //GUARD_BR_IPS_GLOBAL_H |