P99
Macros | Typedefs | Enumerations | Functions
p99_enum.h File Reference
#include "p99_for.h"
+ Include dependency graph for p99_enum.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define P99_CONSTANT(T, NAME, INIT)   register T const NAME = INIT
 define a compile time constant NAME of type T with value INIT More...
 
#define P99_DECLARE_ENUM(T, ...)
 Declare a simple enumeration type. More...
 
#define P99_DECLARE_ENUM_GETNAME(T, ...)
 Declare a simple inline function to return strings containing the names of enumeration constants. More...
 
#define P99_DECLARE_ENUM_PARSE(T, ...)
 Declare a simple inline function to return the longest enumeration constants of type T found in a string. More...
 
#define P99_DEFINE_ENUM(T)
 Define the necessary symbols for a simple enumeration type. More...
 
#define P99_ENDIANNESS   ((p99_endianness)P99_HTON(4, UINT32_C(0x01020304)))
 Return the platform endianness in terms of a value of type p99_endianness. More...
 
#define P99_UNUSED(...)   P99_SEP(P00_UNUSED, __VA_ARGS__)
 check if the list of expressions is syntactically valid but don't evaluate it More...
 

Typedefs

typedef enum p99_endianness p99_endianness
 Classify platforms according to their endianness. More...
 

Enumerations

enum  p99_endianness { p99_big_endian = 0x01020304u, p99_little_endian = 0x04030201u, p99_pdp_endian = 0x02010403u }
 Classify platforms according to their endianness. More...
 

Functions

char const * bool_getname (bool p00_x)
 
char const * p99_endianness_getname (p99_endianness p00_x)
 Get a string with the name of constant p00_x of type :: p99_endianness
More...
 
P99_CONSTANT
#define P99_CONSTANT(T, NAME, INIT)
define a compile time constant NAME of type T with value INIT
Definition: p99_enum.h:258
P99_PASTE2
#define P99_PASTE2(_1, _2)
Paste two token sequences at their junction.
Definition: p99_paste.h:82
P99_DEFINE_ENUM
#define P99_DEFINE_ENUM(T)
Define the necessary symbols for a simple enumeration type.
Definition: p99_enum.h:178
P99_UNUSED
#define P99_UNUSED(...)
check if the list of expressions is syntactically valid but don't evaluate it
Definition: p99_enum.h:215
P99_DECLARE_ENUM
#define P99_DECLARE_ENUM(T,...)
Declare a simple enumeration type.
Definition: p99_enum.h:139
P99_INSTANTIATE
#define P99_INSTANTIATE(RT, NAME,...)
Instantiate an inline function.
Definition: p99_defarg.h:241