Utility functions

Utility functions — Orc utility functions

Synopsis

typedef             orc_bool;
#define             ORC_ASSERT                          (test)
#define             ORC_BEGIN_DECLS
#define             ORC_CLAMP                           (x,
                                                         a,
                                                         b)
#define             ORC_END_DECLS
#define             ORC_EXPORT
#define             ORC_GNUC_PREREQ                     (maj,
                                                         min)
#define             ORC_GNU_PRINTF                      (a,
                                                         b)
#define             ORC_INTERNAL
#define             ORC_PTR_TO_INT                      (x)
#define             ORC_READ_UINT32_LE                  (ptr)
#define             ORC_WRITE_UINT32_LE                 (ptr,
                                                         val)

Description

Details

orc_bool

typedef unsigned int orc_bool;


ORC_ASSERT()

#define             ORC_ASSERT(test)


ORC_BEGIN_DECLS

#define ORC_BEGIN_DECLS extern "C" {


ORC_CLAMP()

#define ORC_CLAMP(x,a,b) ((x)<(a) ? (a) : ((x)>(b) ? (b) : (x)))


ORC_END_DECLS

#define ORC_END_DECLS }


ORC_EXPORT

#define ORC_EXPORT __declspec(dllexport) extern


ORC_GNUC_PREREQ()

#define             ORC_GNUC_PREREQ(maj, min)


ORC_GNU_PRINTF()

#define ORC_GNU_PRINTF(a,b) __attribute__((__format__ (__printf__, a, b)))


ORC_INTERNAL

#define ORC_INTERNAL __attribute__ ((visibility ("internal")))


ORC_PTR_TO_INT()

#define ORC_PTR_TO_INT(x) ((int)(orc_intptr)(x))


ORC_READ_UINT32_LE()

#define             ORC_READ_UINT32_LE(ptr)


ORC_WRITE_UINT32_LE()

#define             ORC_WRITE_UINT32_LE(ptr,val)