Artifact 074eb1cc6bddc0057a3f2cc90d0ff089c31f7b3772c6c6523882a80cbd487878:
- File kcore/old/def.h — part of check-in [e794c5edef] at 2019-06-29 09:31:50 on branch trunk — add a bunch of code, port the header mechanism to gpp; add a fuckton of definitions and compatibility header code; notably, add core function kstop and x86.lin.{32,64} impl. update docs accordingly (user: lexi, size: 654) [annotate] [blame] [check-ins using]
- File legacy/kcore/def.h — part of check-in [724bbbbe91] at 2019-08-19 02:18:11 on branch trunk — clean out legacy code (user: lexi, size: 654) [annotate] [blame] [check-ins using]
#include <k/type.h>
/* <k/def.h>
* ~ lexi hale <lexi@hale.su>
* define flags so we can reason about
* our environment. */
#if (KVos == lin) ||\
(KVos == fbsd) ||\
(KVos == obsd) ||\
(KVos == nbsd) ||\
(KVos == dar) ||\
(KVos == and)
# define KFenv_unix
#endif
#if defined(KFenv_unix) ||\
(KVos == hai) ||\
(KVos == mgw)
# define KFenv_posix
#endif
#define Kpragma(p) _Pragma(#p)
#if defined(__GNUC__) || defined(__clang__)
# define Kerror(msg) Kpragma(GCC error #msg)
#else
# define Kerror(msg) Kpragma(message #msg)
#endif
#define Knoimpl(fn,p) Kerror(no implementation of fn for platform p)