public release
This commit is contained in:
21
sphaira/include/log.hpp
Normal file
21
sphaira/include/log.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#define sphaira_USE_LOG 1
|
||||
|
||||
#if sphaira_USE_LOG
|
||||
auto log_file_init() -> bool;
|
||||
auto log_nxlink_init() -> bool;
|
||||
void log_file_exit();
|
||||
void log_nxlink_exit();
|
||||
void log_write(const char* s, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
#else
|
||||
inline auto log_file_init() -> bool {
|
||||
return true;
|
||||
}
|
||||
inline auto log_nxlink_init() -> bool {
|
||||
return true;
|
||||
}
|
||||
#define log_file_exit()
|
||||
#define log_nxlink_exit()
|
||||
#define log_write(...)
|
||||
#endif
|
||||
Reference in New Issue
Block a user