mirror of
https://github.com/pret/pmd-red.git
synced 2026-04-04 16:34:58 -05:00
28 lines
593 B
C
28 lines
593 B
C
#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
|