rcx

miscellaneous C library
git clone git://git.rr3.xyz/rcx
Log | Files | Refs | README | LICENSE

rcx.h (760B)


      1 #pragma once
      2 
      3 #include <inttypes.h>
      4 #include <stddef.h>
      5 
      6 /* Standard headers that should be part of the language proper */
      7 #include <stdarg.h>
      8 #include <stdbool.h>
      9 #if __STDC_VERSION__ >= 201100L
     10 #include <stdalign.h>
     11 #include <stdnoreturn.h>
     12 /* We don't include assert.h, because we provide our own assert macro in
     13  * debug.h, but we would still like C11's static_assert. In C23, static_assert
     14  * becomes a keyword, so no define is necessary. */
     15 #if __STDC_VERSION__ < 202300L
     16 #define static_assert _Static_assert
     17 #endif
     18 #endif
     19 
     20 /* Define the "complex"/"imaginary" pseudo-keywords without including all the
     21  * other stuff in complex.h. */
     22 #ifndef complex
     23 #define complex _Complex
     24 #endif
     25 #ifndef imaginary
     26 #define imaginary _Imaginary
     27 #endif
     28 
     29 #include "def.h"