libk  Diff

Differences From Artifact [9abe158651]:

To Artifact [9c53671363]:


     1      1   --- kcore/def.h.m → <k/def.h>
     2      2   --- ~ lexi hale <lexi@hale.su>
     3      3   --- this file gathers information on the environment it's
     4      4   --- being compiled in, setting macros that other headers
     5      5   --- need. it will be emitted as <k/def.h>.
     6      6   --- vim: ft=c
            7  +#ifndef KIdef
            8  +#define KIdef
     7      9   
     8     10   [ifdef atom_target_bits]
     9     11   	[define target: [atom_target_arch].[atom_target_os].[atom_target_bits]]
    10     12   	#define KVbits [atom_target_bits]
    11     13   [else]
    12     14   	[define target: [atom_target_arch].[atom_target_os]]
    13     15   [endif]
................................................................................
    26     28   #define Kpragma(p) _Pragma(#p)
    27     29   #if defined(__GNUC__) || defined(__clang__)
    28     30   #   define Kerror(msg) Kpragma(GCC error #msg) 
    29     31   #else
    30     32   #   define Kerror(msg) Kpragma(message #msg)
    31     33   #endif
    32     34   #define Knoimpl(fn) Kerror(no implementation of fn for platform [target])
           35  +
           36  +#endif