aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2023-01-31 20:29:02 +0100
committerAndre Weissflog <floooh@gmail.com>2023-01-31 20:29:02 +0100
commit138280be7c08d0c2a496c0acede64002740a5bdb (patch)
treed5eb3cf7477b178dbee3e1a54ae37b0a248ef9e6 /README.md
parent28c63b5473352a9d86c115da9448f61a2324c554 (diff)
sokol_fetch.h: add new-style logging, enabel request validation in release mode
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 17a22e81..a730208d 100644
--- a/README.md
+++ b/README.md
@@ -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){