16#ifndef GLCE_ENGINE_BASE_CHOCO_MESSAGE_H
17#define GLCE_ENGINE_BASE_CHOCO_MESSAGE_H
40#define ENABLE_MESSAGE_SEVERITY_ERROR 1
47#define ENABLE_MESSAGE_SEVERITY_WARNING 1
54 #define ENABLE_MESSAGE_SEVERITY_INFORMATION 0
60 #define ENABLE_MESSAGE_SEVERITY_DEBUG 0
66 #define ENABLE_MESSAGE_SEVERITY_INFORMATION 1
72 #define ENABLE_MESSAGE_SEVERITY_DEBUG 1
84#if ENABLE_MESSAGE_SEVERITY_ERROR
89 #define ERROR_MESSAGE(...) message_output(MESSAGE_SEVERITY_ERROR, __VA_ARGS__)
95 #define ERROR_MESSAGE(...)
98#if ENABLE_MESSAGE_SEVERITY_WARNING
103 #define WARN_MESSAGE(...) message_output(MESSAGE_SEVERITY_WARNING, __VA_ARGS__)
109 #define WARN_MESSAGE(...)
112#if ENABLE_MESSAGE_SEVERITY_INFORMATION
117 #define INFO_MESSAGE(...) message_output(MESSAGE_SEVERITY_INFORMATION, __VA_ARGS__)
123 #define INFO_MESSAGE(...)
126#if ENABLE_MESSAGE_SEVERITY_DEBUG
131 #define DEBUG_MESSAGE(...) message_output(MESSAGE_SEVERITY_DEBUG, __VA_ARGS__)
137 #define DEBUG_MESSAGE(...)
void message_output(message_severity_t severity_, const char *format_,...)
メッセージ出力関数(メッセージの重要度に応じて出力フォーマットを変える)
Definition: choco_message.c:23
message_severity_t
出力メッセージ重要度リスト
Definition: choco_message.h:28
@ MESSAGE_SEVERITY_ERROR
Definition: choco_message.h:29
@ MESSAGE_SEVERITY_DEBUG
Definition: choco_message.h:32
@ MESSAGE_SEVERITY_INFORMATION
Definition: choco_message.h:31
@ MESSAGE_SEVERITY_WARNING
Definition: choco_message.h:30