diff options
| author | realtradam <[email protected]> | 2023-03-12 01:44:46 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-03-12 01:44:46 -0500 |
| commit | 632619168ddbe7707d4b47bf2ffcc972df7a20ea (patch) | |
| tree | 6d2c623d57693de47aee685e26d72536144c340e /src/rodeo_log.c | |
| parent | d5ebba9e62e94eb5b2388a4471a6feae4f5c8486 (diff) | |
| download | RodeoKit-632619168ddbe7707d4b47bf2ffcc972df7a20ea.tar.gz RodeoKit-632619168ddbe7707d4b47bf2ffcc972df7a20ea.zip | |
cleanup and fix logging and frame timing
Diffstat (limited to 'src/rodeo_log.c')
| -rw-r--r-- | src/rodeo_log.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rodeo_log.c b/src/rodeo_log.c index e9976ce..1a37ffe 100644 --- a/src/rodeo_log.c +++ b/src/rodeo_log.c @@ -1,8 +1,11 @@ -// public external +// public internal #include "rodeo_types.h" #include "rodeo.h" +// external +#include "SDL2/SDL.h" + static rodeo_log_function logging_function = NULL; void @@ -15,9 +18,7 @@ rodeo_log( rodeo_string_t formatted; mrodeo_vargs_do(format) { - formatted = rodeo_string_format(format, vargs); - printf("%s\n", rodeo_string_to_cstr(&formatted)); - printf(rodeo_string_to_cstr(&formatted)); + formatted = rodeo_string_vargs_format(format, vargs); } switch(loglevel) @@ -48,7 +49,7 @@ rodeo_log( if(logging_function == NULL) { - printf("%s", rodeo_string_to_constcstr(&formatted)); + printf("%s", rodeo_string_to_constcstr(&formatted)); } else { |
