clang de mort
This commit is contained in:
1 parent
2a4f53984c
commit
47ae303ec1
1 file changed
+19
-5
@@ -4,19 +4,33 @@
|
||||
#define MODEL_H
|
||||
|
||||
#include <SDL.h>
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct Env_t Env;
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
#ifdef __ANDROID__
|
||||
#define PRINT(STR, ...) do { SDL_Log(STR, ##__VA_ARGS__); } while(0)
|
||||
#define ERROR(STR, ...) do { SDL_Log(STR, ##__VA_ARGS__); exit(EXIT_FAILURE); } while(0)
|
||||
#define PRINT(STR, ...) \
|
||||
do { \
|
||||
SDL_Log(STR, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
#define ERROR(STR, ...) \
|
||||
do { \
|
||||
SDL_Log(STR, ##__VA_ARGS__); \
|
||||
exit(EXIT_FAILURE); \
|
||||
} while (0)
|
||||
#else
|
||||
#define PRINT(STR, ...) do { printf(STR, ##__VA_ARGS__); } while(0)
|
||||
#define ERROR(STR, ...) do { fprintf(stderr, STR, ##__VA_ARGS__); exit(EXIT_FAILURE); } while(0)
|
||||
#define PRINT(STR, ...) \
|
||||
do { \
|
||||
printf(STR, ##__VA_ARGS__); \
|
||||
} while (0)
|
||||
#define ERROR(STR, ...) \
|
||||
do { \
|
||||
fprintf(stderr, STR, ##__VA_ARGS__); \
|
||||
exit(EXIT_FAILURE); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
/* **************************************************************** */
|
||||
|
||||
Reference in new issue
Block a user