summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/c11/fmt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/c11/fmt.h b/include/c11/fmt.h
index d7c10cbe..df96bae3 100644
--- a/include/c11/fmt.h
+++ b/include/c11/fmt.h
@@ -25,7 +25,7 @@ void fmt_close(fmt_stream* ss);
* C11 or higher required.
* MAX 255 chars fmt string by default. MAX 12 arguments after fmt string.
-* Define FMT_IMPLEMENT or i_implement prior to #include in one translation unit.
+* Define FMT_IMPLEMENT, STC_IMPLEMENT or i_implement prior to #include in one translation unit.
* Define FMT_SHORTS to add print(), println() and printd() macros, without fmt_ prefix.
* (c) operamint, 2022, MIT License.
-----------------------------------------------------------------------------------
@@ -84,7 +84,7 @@ int main(void) {
#define _fmt_ARG_N(_1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, \
_14, _15, _16, N, ...) N
-#if defined FMT_NDEBUG || defined NDEBUG
+#if defined FMT_NDEBUG || defined STC_NDEBUG || defined NDEBUG
# define fmt_OK(exp) (void)(exp)
#else
# define fmt_OK(exp) assert(exp)
@@ -196,7 +196,7 @@ void _fmt_bprint(fmt_stream*, const char* fmt, ...);
const wchar_t*: "ls", \
const void*: "p")
-#if defined FMT_IMPLEMENT || defined i_implement
+#if defined FMT_IMPLEMENT || defined STC_IMPLEMENT || defined i_implement
#include <stdlib.h>
#include <stdarg.h>