|
|
#define | PIP_VERSION ((PIP_VERSION_MAJOR << 16) | (PIP_VERSION_MINOR < 8) | PIP_VERSION_REVISION) |
| | Version of PIP in hex - 0x##(Major)##(Minor)##(Revision)
|
| |
| #define | PIMETA(...) |
| |
|
#define | PIP_VERSION_MAJOR |
| | Major value of PIP version.
|
| |
|
#define | PIP_VERSION_MINOR |
| | Minor value of PIP version.
|
| |
|
#define | PIP_VERSION_REVISION |
| | Revision value of PIP version.
|
| |
|
#define | PIP_VERSION_SUFFIX |
| | Suffix of PIP version.
|
| |
|
#define | PIP_DEBUG |
| | Macro is defined when compile-time debug is enabled.
|
| |
|
#define | WINDOWS |
| | Macro is defined when host is any Windows.
|
| |
|
#define | QNX |
| | Macro is defined when host is QNX or Blackberry.
|
| |
|
#define | BLACKBERRY |
| | Macro is defined when host is Blackberry.
|
| |
|
#define | FREE_BSD |
| | Macro is defined when host is FreeBSD.
|
| |
|
#define | MAC_OS |
| | Macro is defined when host is Mac OS.
|
| |
|
#define | ANDROID |
| | Macro is defined when host is Android.
|
| |
|
#define | LINUX |
| | Macro is defined when host is any Linux.
|
| |
|
#define | CC_GCC |
| | Macro is defined when compiler is GCC or MinGW.
|
| |
|
#define | HAS_LOCALE |
| | Macro is defined when PIP is decided that host is support language.
|
| |
|
#define | CC_VC |
| | Macro is defined when compiler is Visual Studio.
|
| |
|
#define | CC_OTHER |
| | Macro is defined when compiler is unknown.
|
| |
|
#define | PIP_TIMER_RT |
| | Macro is defined when PIP can use "rt" library for "PITimer::ThreadRT" timers implementation.
|
| |
|
#define | PIP_CONTAINERS_STL |
| | Define this macro to use STL implementation of containers, else PIP implementation will be used.
|
| |
|
#define | environ (*_NSGetEnviron()) |
| | define tcdrain(fd) ioctl(fd, TCSBRK, 1)
|
| |
|
#define | environ __environ |
| | define tcdrain(fd) ioctl(fd, TCSBRK, 1)
|
| |
|
#define | FOREVER for (;;) |
| | Macro used for infinite loop.
|
| |
|
#define | FOREVER_WAIT FOREVER msleep(1); |
| | Macro used for infinite wait.
|
| |
|
#define | WAIT_FOREVER FOREVER msleep(1); |
| | Macro used for infinite wait.
|
| |
|
| template<typename T > |
| void | piSwap (T &f, T &s) |
| | Templated function for swap two values. More...
|
| |
| template<typename T > |
| void | piSwapBinary (T &f, T &s) |
| | Templated function for swap two values without "=". More...
|
| |
| bool | piCompareBinary (const void *f, const void *s, size_t size) |
| | Function for compare two values without "=" by raw content. More...
|
| |
| template<typename T > |
| int | piRound (const T &v) |
| | Templated function return round of float falue. More...
|
| |
| template<typename T > |
| int | piFloor (const T &v) |
| | Templated function return floor of float falue. More...
|
| |
| template<typename T > |
| int | piCeil (const T &v) |
| | Templated function return ceil of float falue. More...
|
| |
| template<typename T > |
| T | piAbs (const T &v) |
| | Templated function return absolute of numeric falue. More...
|
| |
| template<typename T > |
| T | piMin (const T &f, const T &s) |
| | Templated function return minimum of two values. More...
|
| |
| template<typename T > |
| T | piMin (const T &f, const T &s, const T &t) |
| | Templated function return minimum of tree values. More...
|
| |
| template<typename T > |
| T | piMax (const T &f, const T &s) |
| | Templated function return maximum of two values. More...
|
| |
| template<typename T > |
| T | piMax (const T &f, const T &s, const T &t) |
| | Templated function return maximum of tree values. More...
|
| |
| template<typename T > |
| T | piClamp (const T &v, const T &min, const T &max) |
| | Templated function return clamped value. More...
|
| |
|
void | piLetobe (void *data, int size) |
| | Function inverse byte order in memory block.
|
| |
|
template<typename T > |
| void | piLetobe (T *v) |
| | Templated function that inverse byte order of value "v".
|
| |
| template<typename T > |
| T | piLetobe (const T &v) |
| | Templated function that returns "v" with inversed byte order. More...
|
| |
| ushort | letobe_s (ushort v) |
| | Use piLetobe() instead of this function. More...
|
| |
| uint | letobe_i (uint v) |
| | Use piLetobe() instead of this function. More...
|
| |
Base types and functions.
This file implements first layer above the system and declares some basic useful functions