Files
PojavLauncher_iOS/Natives/log.h
T
Duy Tran Khanh 3be87bfa46 Changes
- Added preferences screen (currently empty)
- Cleaned compiler warnings
- Implemented GLFW clipboard
2021-05-24 20:50:40 +07:00

30 lines
618 B
C

#include <stdio.h>
#ifdef __cplusplus
extern "C" {
#endif
#define LOGE(...) printf(__VA_ARGS__)
#define LOGW(...) printf(__VA_ARGS__)
#define LOGI(...) printf(__VA_ARGS__)
#define LOGD(...) printf(__VA_ARGS__)
#ifdef DEBUG
# define DEBUG_LOGE(...) LOGE(__VA_ARGS__)
# define DEBUG_LOGW(...) LOGW(__VA_ARGS__)
# define DEBUG_LOGI(...) LOGI(__VA_ARGS__)
# define DEBUG_LOGD(...) LOGD(__VA_ARGS__)
#else
# define DEBUG_LOGE(...)
# define DEBUG_LOGW(...)
# define DEBUG_LOGI(...)
# define DEBUG_LOGD(...)
#endif
void debug(const char *message, ...) __attribute__((format(printf, 1, 2)));
#ifdef __cplusplus
}
#endif