From 8b4eae4038db87f2df1c40856c99c3ffca8887fe Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 4 Jan 2017 22:37:53 +0000 Subject: Remove `TOX_DEBUG` and have asserts always enabled. These are cheap asserts. I've also replaced the fprintf's with `LOGGER_ERROR` calls. --- toxcore/util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'toxcore/util.h') diff --git a/toxcore/util.h b/toxcore/util.h index c435813b..daa5a26d 100644 --- a/toxcore/util.h +++ b/toxcore/util.h @@ -29,6 +29,8 @@ #include #include +#include "logger.h" + #define MIN(a,b) (((a)<(b))?(a):(b)) #define PAIR(TYPE1__, TYPE2__) struct { TYPE1__ first; TYPE2__ second; } @@ -52,7 +54,7 @@ void lendian_to_host32(uint32_t *dest, const uint8_t *lendian); /* state load/save */ typedef int (*load_state_callback_func)(void *outer, const uint8_t *data, uint32_t len, uint16_t type); -int load_state(load_state_callback_func load_state_callback, void *outer, +int load_state(load_state_callback_func load_state_callback, Logger *log, void *outer, const uint8_t *data, uint32_t length, uint16_t cookie_inner); /* Returns -1 if failed or 0 if success */ -- cgit v1.2.3