the log wrapper in C/C++ accepts formats

This commit is contained in:
2026-03-17 13:22:44 +11:00
parent 2b3fe0630f
commit bdbd94eda2
9 changed files with 259 additions and 7 deletions

View File

@@ -44,3 +44,9 @@ void rust_log_event_with_level(const char* event, RustLogLevel level);
#define RUST_LOG_DEBUG(msg) rust_log_event_with_level((msg), RUST_LOG_LEVEL_DEBUG)
#define RUST_LOG_TRACE(msg) rust_log_event_with_level((msg), RUST_LOG_LEVEL_TRACE)
// C wrapper: printf-style helpers (header-only)
#include "rust_backend_logging_c.h"
#ifdef __cplusplus
#include "rust_backend_logging_cpp.h"
#endif