mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
32 lines
618 B
C
32 lines
618 B
C
// 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
|