D:/Projects/dark-oberon.svn/game/sources/kernel/system.h File Reference


Detailed Description

Includes all common kernel headers.

Author:
Peter Knut
Date:
2005, 2007
Version:
1.0 - Initial.

1.1 - Removed math. functions for random numbers.

#include "kernel/config.h"
#include "kernel/debug.h"
#include "kernel/types.h"
#include "kernel/memory.h"
#include "kernel/defclass.h"

Defines

#define NOH_ASSIGNS   string("/sys/assigns")
#define NOH_SERVERS   string("/sys/servers")
#define NOH_RESOURCES   string("/sys/resources")
#define NOH_VARIABLES   string("/sys/variables")
#define SafeDelete(a)   do { delete a; a = NULL; } while(0)
#define SafeDeleteArray(a)   do { delete[] a; a = NULL; } while (0)
#define SafeRelease(a)   do { if (a) { a->Release(); a = NULL; } } while(0)

Functions

template<class T>
void Delete2DArray (T **array2D, int width)
template<class T>
T ** Create2DArray (int width, int height)


Define Documentation

#define NOH_ASSIGNS   string("/sys/assigns")

#define NOH_RESOURCES   string("/sys/resources")

#define NOH_SERVERS   string("/sys/servers")

#define NOH_VARIABLES   string("/sys/variables")

#define SafeDelete (  )     do { delete a; a = NULL; } while(0)

#define SafeDeleteArray (  )     do { delete[] a; a = NULL; } while (0)

#define SafeRelease (  )     do { if (a) { a->Release(); a = NULL; } } while(0)


Function Documentation

template<class T>
T** Create2DArray ( int  width,
int  height 
) [inline]

template<class T>
void Delete2DArray ( T **  array2D,
int  width 
) [inline]


Generated on Sat Oct 20 14:47:29 2007 for Dark Oberon by  doxygen 1.5.3