From 250a331df9dbd312d572aaf0d629503417cfc9d4 Mon Sep 17 00:00:00 2001 From: PikalaxALT Date: Thu, 11 Jul 2019 21:16:23 -0400 Subject: Track tools srcs --- tools/br_ips/global.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tools/br_ips/global.h (limited to 'tools/br_ips/global.h') 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 -- cgit v1.2.3