diff options
| author | Andre Weissflog <floooh@gmail.com> | 2023-01-31 20:29:02 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2023-01-31 20:29:02 +0100 |
| commit | 138280be7c08d0c2a496c0acede64002740a5bdb (patch) | |
| tree | d5eb3cf7477b178dbee3e1a54ae37b0a248ef9e6 /README.md | |
| parent | 28c63b5473352a9d86c115da9448f61a2324c554 (diff) | |
sokol_fetch.h: add new-style logging, enabel request validation in release mode
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -327,6 +327,7 @@ Simple C99 example loading a file into a static buffer: ```c #include "sokol_fetch.h" +#include "sokol_log.h" static void response_callback(const sfetch_response*); @@ -337,7 +338,7 @@ static uint8_t buffer[MAX_FILE_SIZE]; static void init(void) { ... // setup sokol-fetch with default config: - sfetch_setup(&(sfetch_desc_t){0}); + sfetch_setup(&(sfetch_desc_t){ .logger.func = slog_func }); // start loading a file into a statically allocated buffer: sfetch_send(&(sfetch_request_t){ |