Pipeline graphique
 Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Définitions de type Énumérations Valeurs énumérées Macros
Structures de données | Macros | Définitions de type | Fonctions | Variables
Référence du fichier defUtil.h
#include <stdlib.h>
#include <stdio.h>
#include <utility>
#include "defTypes.h"
Graphe des dépendances par inclusion de defUtil.h:
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Structures de données

struct  color
 
struct  rgb
 

Macros

#define SAFE_DELETE(x)   { if ((x)!=NULL) { delete (x); x=NULL; } }
 
#define SAFE_DELETE_ARRAY(x)   { if ((x)!=NULL) { delete [] (x); x=NULL; } }
 
#define FATAL_ERROR(msg)   { printf("%s:%s\n",__FUNCTION__,msg); getchar(); exit(-1); }
 
#define ERROR(why, fmt,...)   { printf("Error (%s:%s line %d) : %s (" fmt ")\n", __FILE__, __FUNCTION__, __LINE__, why,__VA_ARGS__ ); exit(-1); }
 
#define WARNING(why, fmt,...)   { printf("Warning (%s:%s line %d) : %s (" fmt ")\n", __FILE__, __FUNCTION__, __LINE__, why,__VA_ARGS__ ); }
 
#define swap(a, b, c)   { c=a; a=b; b=c; }
 
#define min(a, b)   ( (a)<(b) ? (a):(b) )
 
#define max(a, b)   ( (a)>(b) ? (a):(b) )
 

Définitions de type

typedef unsigned int ErrCode
 

Fonctions

void WriteConsole (const char *fmt,...)
 

Variables

const unsigned int error = 0
 
const unsigned int success = !error
 
const color black ={0x00,0x00,0x00,0xff}
 
const color cyan ={0x00,0xff,0xff,0xff}
 
const color red ={0xff,0x00,0x00,0xff}
 
const color magenta ={0xff,0x00,0xff,0xff}
 
const color green ={0x00,0xff,0x00,0xff}
 
const color yellow ={0xff,0xff,0xff,0xff}
 
const color blue ={0x00,0x00,0xff,0xff}
 
const color white ={0xff,0xff,0xff,0xff}
 

Documentation des macros

#define ERROR (   why,
  fmt,
  ... 
)    { printf("Error (%s:%s line %d) : %s (" fmt ")\n", __FILE__, __FUNCTION__, __LINE__, why,__VA_ARGS__ ); exit(-1); }

Définition à la ligne 24 du fichier defUtil.h.

#define FATAL_ERROR (   msg)    { printf("%s:%s\n",__FUNCTION__,msg); getchar(); exit(-1); }

Définition à la ligne 17 du fichier defUtil.h.

#define max (   a,
 
)    ( (a)>(b) ? (a):(b) )

Définition à la ligne 30 du fichier defUtil.h.

#define min (   a,
 
)    ( (a)<(b) ? (a):(b) )

Définition à la ligne 29 du fichier defUtil.h.

#define SAFE_DELETE (   x)    { if ((x)!=NULL) { delete (x); x=NULL; } }

Définition à la ligne 8 du fichier defUtil.h.

#define SAFE_DELETE_ARRAY (   x)    { if ((x)!=NULL) { delete [] (x); x=NULL; } }

Définition à la ligne 9 du fichier defUtil.h.

#define swap (   a,
  b,
 
)    { c=a; a=b; b=c; }

Définition à la ligne 28 du fichier defUtil.h.

#define WARNING (   why,
  fmt,
  ... 
)    { printf("Warning (%s:%s line %d) : %s (" fmt ")\n", __FILE__, __FUNCTION__, __LINE__, why,__VA_ARGS__ ); }

Définition à la ligne 25 du fichier defUtil.h.

Documentation des définitions de type

typedef unsigned int ErrCode

Définition à la ligne 12 du fichier defUtil.h.

Documentation des fonctions

void WriteConsole ( const char *  fmt,
  ... 
)

Documentation des variables

const color black ={0x00,0x00,0x00,0xff}

Définition à la ligne 37 du fichier defUtil.h.

const color blue ={0x00,0x00,0xff,0xff}

Définition à la ligne 40 du fichier defUtil.h.

const color cyan ={0x00,0xff,0xff,0xff}

Définition à la ligne 37 du fichier defUtil.h.

const unsigned int error = 0

Définition à la ligne 13 du fichier defUtil.h.

const color green ={0x00,0xff,0x00,0xff}

Définition à la ligne 39 du fichier defUtil.h.

const color magenta ={0xff,0x00,0xff,0xff}

Définition à la ligne 38 du fichier defUtil.h.

const color red ={0xff,0x00,0x00,0xff}

Définition à la ligne 38 du fichier defUtil.h.

const unsigned int success = !error

Définition à la ligne 14 du fichier defUtil.h.

const color white ={0xff,0xff,0xff,0xff}

Définition à la ligne 40 du fichier defUtil.h.

const color yellow ={0xff,0xff,0xff,0xff}

Définition à la ligne 39 du fichier defUtil.h.