Hookup cute_tiled logger to engine logging
This commit is contained in:
@@ -99,7 +99,7 @@ void bzLoggerLogV(BzLoggerLevel level, const char *file, int line, const char *f
|
||||
timeBuf[lastIdx] = '\0';
|
||||
event.time = timeBuf;
|
||||
|
||||
if (!BZ_GET_LOGGER_MODULE()->silent && level <= loggerLevel) {
|
||||
if (!BZ_GET_LOGGER_MODULE()->silent && level >= loggerLevel) {
|
||||
event.userData = stderr;
|
||||
va_copy(event.va, va);
|
||||
bzLoggerStdOutCallback(&event);
|
||||
|
||||
@@ -52,7 +52,7 @@ bool bzLoggerAddCB(const BzLoggerCallback *callback);
|
||||
#define bzLogTrace(...) bzLoggerLog(BZ_LOG_TRACE, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define bzLogDebug( ...) bzLoggerLog(BZ_LOG_DEBUG, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define bzLogInfo(...) bzLoggerLog(BZ_LOG_INFO, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define bzLogWarn(...) bzLoggerLog(BZ_LOG_WARN, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define bzLogWarning(...) bzLoggerLog(BZ_LOG_WARNING, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define bzLogError(...) bzLoggerLog(BZ_LOG_ERROR, __FILE__, __LINE__, __VA_ARGS__)
|
||||
#define bzLogFatal(...) bzLoggerLog(BZ_LOG_FATAL, __FILE__, __LINE__, __VA_ARGS__)
|
||||
|
||||
|
||||
1
engine/breeze/core/memory.c
Normal file
1
engine/breeze/core/memory.c
Normal file
@@ -0,0 +1 @@
|
||||
#include "memory.h"
|
||||
4
engine/breeze/core/memory.h
Normal file
4
engine/breeze/core/memory.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef BREEZE_MEMORY_H
|
||||
#define BREEZE_MEMORY_H
|
||||
|
||||
#endif //BREEZE_MEMORY_H
|
||||
@@ -1,3 +1,5 @@
|
||||
#include <breeze/core/logger.h>
|
||||
#define CUTE_TILED_WARNING(msg) bzLogWarning(msg)
|
||||
|
||||
#define CUTE_TILED_IMPLEMENTATION
|
||||
#include "cute_tiled/cute_tiled.h"
|
||||
|
||||
Reference in New Issue
Block a user