Defines

OrxDecl

Defines

#define __orxLITTLE_ENDIAN__
#define orxALIGN(ADDRESS, BLOCK_SIZE)   (((ADDRESS) + ((BLOCK_SIZE) - 1)) & (~((BLOCK_SIZE) - 1)))
#define orxALIGN16(ADDRESS)   orxALIGN(ADDRESS, 16)
#define orxALIGN32(ADDRESS)   orxALIGN(ADDRESS, 32)
#define orxALIGN64(ADDRESS)   orxALIGN(ADDRESS, 64)
#define orxDLLAPI   orxIMPORT orxDLLEXPORT
#define orxFLAG_GET(X, M)   ((X) & (M))
#define orxFLAG_SET(X, A, R)
#define orxFLAG_SWAP(X, S)   ((X) ^= (S))
#define orxFLAG_TEST(X, F)   (((X) & (F)) != 0)
#define orxFLAG_TEST_ALL(X, F)   (((X) & (F)) == (F))
#define orxIMPORT
#define orxPAD(SIZE)

Detailed Description

Base declarations


Define Documentation

#define __orxLITTLE_ENDIAN__

Definition at line 79 of file orxDecl.h.

#define orxALIGN (   ADDRESS,
  BLOCK_SIZE 
)    (((ADDRESS) + ((BLOCK_SIZE) - 1)) & (~((BLOCK_SIZE) - 1)))

Memory alignment macros

Definition at line 316 of file orxDecl.h.

#define orxALIGN16 (   ADDRESS )    orxALIGN(ADDRESS, 16)

Definition at line 318 of file orxDecl.h.

#define orxALIGN32 (   ADDRESS )    orxALIGN(ADDRESS, 32)

Definition at line 319 of file orxDecl.h.

#define orxALIGN64 (   ADDRESS )    orxALIGN(ADDRESS, 64)

Definition at line 320 of file orxDecl.h.

#define orxDLLAPI   orxIMPORT orxDLLEXPORT

Definition at line 310 of file orxDecl.h.

#define orxFLAG_GET (   X,
 
)    ((X) & (M))

Gets flags

Parameters:
[in]XFlag container
[in]MFiltering mask
Returns:
Masked flags

Definition at line 365 of file orxDecl.h.

#define orxFLAG_SET (   X,
  A,
 
)
Value:
do                            \
{                             \
  (X) &= ~(R);                \
  (X) |= (A);                 \
} while(orxFALSE)

Sets / unsets flags

Parameters:
[in]XFlag container
[in]AFlags to add
[in]RFlags to remove

Definition at line 372 of file orxDecl.h.

#define orxFLAG_SWAP (   X,
 
)    ((X) ^= (S))

Swaps flags

Parameters:
[in]XFlag container
[in]SFlags to swap

Definition at line 383 of file orxDecl.h.

#define orxFLAG_TEST (   X,
 
)    (((X) & (F)) != 0)

Tests flags

Parameters:
[in]XFlag container
[in]FFlags to test
Returns:
true if at least one flag is present

Definition at line 358 of file orxDecl.h.

#define orxFLAG_TEST_ALL (   X,
 
)    (((X) & (F)) == (F))

Tests all flags

Parameters:
[in]XFlag container
[in]FFlags to test
Returns:
true if flags are all presents

Definition at line 351 of file orxDecl.h.

#define orxIMPORT

Definition at line 160 of file orxDecl.h.

#define orxPAD (   SIZE )

Definition at line 341 of file orxDecl.h.


Generated for orx by doxygen 1.5.6