Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phStandard.h File Reference


Detailed Description

todo
Todo:
document

Definition in file phStandard.h.

#include <phStdint.h>

Go to the source code of this file.

Defines

#define PHAPI(x)   x __declspec( dllimport )
#define PHAPI_VAR(x)   __declspec( dllimport ) x
#define PHAPI_LOCAL(x)   x
#define __inline__   __inline
#define srandom   srand
#define random   rand
#define phTHREADS_EQUAL(x, y)   (x == y)
#define phSET_MIN(a, b)   if (a > b) a = b;
#define phSET_MAX(a, b)   if (a < b) a = b;
#define phXOR_SWAP(x, y)   { x = x ^ y; y = x ^ y; x = x ^ y; }
#define phSWAP(a, b)   { int itemp=(a);(a)=(b);(b)=itemp; }
#define phCLIP(x)   ((x) < 0) ? 0 : ((x) > 255) ? 255 : (x)
#define phCOMP3(a, b, c, x)
#define phMIN3(a, b, c)   phCOMP3(a,b,c,<)
#define phMAX3(a, b, c)   phCOMP3(a,b,c,>)
#define phMIN(a, b)   ((a < b) ? a : b)
#define phMAX(a, b)   ((a > b) ? a : b)
#define phSUCCESS   0
#define phFAIL   -1
#define phHAVE(name)

Functions

uintmax_t phGetCurrentThreadId (void)
void phYield (void)
uintmax_t phProcessId (void)
void phSleep (uint32_t seconds)
void phMSleep (uint32_t milliseconds)
void phUSleep (uint32_t microseconds)
int phStringCopy (const char *string, const uint32_t maxlen, char **copy, uint32_t *copy_size, char *default_str)




Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo


Generated on Sat Jun 16 02:44:13 2007 for phission by  doxygen 1.4.4