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)

test :


ORC_BEGIN_DECLS

#define             ORC_BEGIN_DECLS


ORC_CLAMP()

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

x :

a :

b :


ORC_END_DECLS

#define             ORC_END_DECLS


ORC_EXPORT

#define             ORC_EXPORT


ORC_GNUC_PREREQ()

#define             ORC_GNUC_PREREQ(maj, min)

maj :

min :


ORC_GNU_PRINTF()

#define             ORC_GNU_PRINTF(a,b)

a :

b :


ORC_INTERNAL

#define             ORC_INTERNAL


ORC_PTR_TO_INT()

#define ORC_PTR_TO_INT(x) ((int)(long)(x))

x :


ORC_READ_UINT32_LE()

#define             ORC_READ_UINT32_LE(ptr)

ptr :


ORC_WRITE_UINT32_LE()

#define             ORC_WRITE_UINT32_LE(ptr,val)

ptr :

val :