32 lines
692 B
C++
32 lines
692 B
C++
//---
|
|
// azur.defs: Generation definitions
|
|
//---
|
|
|
|
/* This exposes compile-time configuration symbols. I don't like running the
|
|
risk of using preprocessor conditionals without pulling the configuration,
|
|
and by getting it here, every header will include it. */
|
|
#include <azur/config.h>
|
|
|
|
/* C++ header guards. */
|
|
#ifdef __cplusplus
|
|
# define AZUR_BEGIN_DECLS extern "C" {
|
|
# define AZUR_END_DECLS }
|
|
#else
|
|
# define AZUR_BEGIN_DECLS
|
|
# define AZUR_END_DECLS
|
|
#endif
|
|
|
|
/* Common types. */
|
|
#ifdef __cplusplus
|
|
# include <cstdint>
|
|
# include <cstddef>
|
|
#else
|
|
# include <inttypes.h>
|
|
# include <stddef.h>
|
|
# include <stdbool.h>
|
|
# include <stdarg.h>
|
|
#endif
|
|
|
|
/* More common types. */
|
|
#include <sys/types.h>
|