public release

This commit is contained in:
ITotalJustice
2024-12-16 21:13:05 +00:00
commit 0370e47f7f
248 changed files with 20513 additions and 0 deletions

21
sphaira/include/log.hpp Normal file
View 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