-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathwwfcLog.hpp
More file actions
28 lines (21 loc) · 1.22 KB
/
wwfcLog.hpp
File metadata and controls
28 lines (21 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include "import/revolution.h"
namespace wwfc::Log
{
#define WWFC_LOG_INFO(_STRING) \
RVL::OSReport("%s" _STRING "\n", "WWFC_INFO : ")
#define WWFC_LOG_INFO_FMT(_FORMAT, ...) \
RVL::OSReport("%s" _FORMAT "\n", "WWFC_INFO : ", __VA_ARGS__)
#define WWFC_LOG_WARN(_STRING) \
RVL::OSReport("%s" _STRING "\n", "WWFC_WARN : ")
#define WWFC_LOG_WARN_FMT(_FORMAT, ...) \
RVL::OSReport("%s" _FORMAT "\n", "WWFC_WARN : ", __VA_ARGS__)
#define WWFC_LOG_ERROR(_STRING) \
RVL::OSReport("%s" _STRING "\n", "++WWFC_ERROR : ")
#define WWFC_LOG_ERROR_FMT(_FORMAT, ...) \
RVL::OSReport("%s" _FORMAT "\n", "++WWFC_ERROR : ", __VA_ARGS__)
#define WWFC_LOG_NOTICE(_STRING) \
RVL::OSReport("%s" _STRING "\n", "WWFC_NOTICE : ")
#define WWFC_LOG_NOTICE_FMT(_FORMAT, ...) \
RVL::OSReport("%s" _FORMAT "\n", "WWFC_NOTICE : ", __VA_ARGS__)
} // namespace wwfc::Log