macros.h File Reference

#include <stdlib.h>

Include dependency graph for macros.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NO_ERROR   0
#define ERREUR(message)
#define VERIF_PT_NULL(PT, CHAINE)
#define ALLOUER(PTR, NB, TYPE)
#define MULTIPLIER(x, y)   ((x)*(y))
#define ABS(x)   ( (x) > 0 ? x : -(x) )


Define Documentation

#define ABS (  )     ( (x) > 0 ? x : -(x) )

Definition at line 68 of file macros.h.

#define ALLOUER ( PTR,
NB,
TYPE   ) 

Value:

{\
    PTR = (TYPE*)malloc ((NB) * sizeof(TYPE));  \
    VERIF_PT_NULL(PTR,"Allocation Impossible");\
    }\

Definition at line 55 of file macros.h.

#define ERREUR ( message   ) 

Value:

{\
    printf("\nERREUR --> fichier %s ligne %d : \n%s\n \n", __FILE__, __LINE__, message) ;\
    exit(1);\
  }\

Definition at line 36 of file macros.h.

Referenced by main(), normaliser_data_input_sur_a_b(), and normaliser_data_output_sur_a_b().

#define MULTIPLIER ( x,
 )     ((x)*(y))

Definition at line 63 of file macros.h.

#define NO_ERROR   0

Definition at line 26 of file macros.h.

#define VERIF_PT_NULL ( PT,
CHAINE   ) 

Value:

if(PT == NULL)\
      {\
      printf("\nVerif_pt_null : le pointeur verifie a renvoye NULL \n");\
      ERREUR(CHAINE);\
    }\

Definition at line 46 of file macros.h.

Referenced by main().


Generated on Tue Apr 22 13:31:03 2008 for donnee1D by  doxygen 1.5.3