aboutsummaryrefslogtreecommitdiff
path: root/sokol_args.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-10-22 14:23:00 +0200
committerAndre Weissflog <floooh@gmail.com>2022-10-22 14:23:00 +0200
commite4b2aad7f27929b6ca58777c4f6884a23b1b0fbb (patch)
tree8717a18f409c9bdcc46a9b4d14a51d223143f472 /sokol_args.h
parent2057da7e15367ba9cf1deee82f8660a19aefe154 (diff)
parent3797da8c7f140f1406671a8ddcac1f7a2d4fc354 (diff)
Merge branch 'log-callback' of github.com:Manuzor/sokol into Manuzor-log-callback
Diffstat (limited to 'sokol_args.h')
-rw-r--r--sokol_args.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/sokol_args.h b/sokol_args.h
index 352b4897..e6bfc983 100644
--- a/sokol_args.h
+++ b/sokol_args.h
@@ -16,7 +16,6 @@
Optionally provide the following defines with your own implementations:
SOKOL_ASSERT(c) - your own assert macro (default: assert(c))
- SOKOL_LOG(msg) - your own logging functions (default: puts(msg))
SOKOL_ARGS_API_DECL - public function declaration prefix (default: extern)
SOKOL_API_DECL - same as SOKOL_ARGS_API_DECL
SOKOL_API_IMPL - public function implementation prefix (default: -)
@@ -236,7 +235,7 @@
.allocator = {
.alloc = my_alloc,
.free = my_free,
- .user_data = ...;
+ .user_data = ...,
}
});
...
@@ -246,7 +245,6 @@
This only affects memory allocation calls done by sokol_args.h
itself though, not any allocations in OS libraries.
-
TODO
====
- parsing errors?
@@ -382,14 +380,6 @@ inline void sargs_setup(const sargs_desc& desc) { return sargs_setup(&desc); }
#include <assert.h>
#define SOKOL_ASSERT(c) assert(c)
#endif
-#ifndef SOKOL_LOG
- #ifdef SOKOL_DEBUG
- #include <stdio.h>
- #define SOKOL_LOG(s) { SOKOL_ASSERT(s); puts(s); }
- #else
- #define SOKOL_LOG(s)
- #endif
-#endif
#ifndef _SOKOL_PRIVATE
#if defined(__GNUC__) || defined(__clang__)