@@ -88,8 +88,14 @@ # define KVstd c++11 # endif /* TODO: add more */ # endif #endif + +#ifdef KFstd_c11 +# define Kassert _Static_assert +#else +# define Kassert(x) { struct { int assertion_failed[(x) ? 1 : -1] }; } +#endif /* hooo boy. null. that one's got a storied * history across the versions and dialects. * below, we try to find the ideal way to @@ -120,11 +126,11 @@ #else # define noreturn #endif -noreturn void kstop(longstat code); +noreturn void kstop(stat_long code); #ifdef KFclean # undef noreturn #endif #endif