Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Macros | Functions
hit_error.h File Reference
#include <stdio.h>
Include dependency graph for hit_error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HIT_NOT_USED(x)   ((void)(x))
 
#define HIT_OK   0
 
#define HIT_ERROR   -1
 
#define HIT_ERR_INTERNAL   -10
 
#define HIT_ERR_USER   -100
 
#define hit_errInternal(routine, text, extraParam, file, numLine)
 
#define hit_warnInternal(routine, text, extraParam, file, numLine)
 
#define hit_error(name, file, numLine)
 
#define hit_warning(name, file, numLine)
 
#define hit_error_here(name)   hit_error(name, __FILE__, __LINE__)
 
#define hit_warning_here(name)   hit_warning(name, __FILE__, __LINE__)
 

Functions

char * get_gdb_trace ()
 

Detailed Description

Hitmap error macros. A set of macro-functions to show error and warnings.

Version
1.2
Author
Javier Fresno Bausela
Arturo Gonzalez-Escribano
Date
Mar 2013

Definition in file hit_error.h.

Macro Definition Documentation

#define HIT_ERR_INTERNAL   -10

Definition at line 55 of file hit_error.h.

#define HIT_ERR_USER   -100

Definition at line 56 of file hit_error.h.

#define hit_errInternal (   routine,
  text,
  extraParam,
  file,
  numLine 
)
Value:
{ \
fprintf(stderr,"Hit RunTime-Error (%s): Internal - %s %s, used in %s[%d]\n", routine, text, extraParam, file, numLine); \
exit( HIT_ERR_INTERNAL ); \
}
#define HIT_ERR_INTERNAL
Definition: hit_error.h:55

Definition at line 63 of file hit_error.h.

#define HIT_ERROR   -1

Definition at line 54 of file hit_error.h.

#define hit_error (   name,
  file,
  numLine 
)
Value:
{ \
fprintf(stderr,"Hit Programmer, RunTime-Error: %s, in %s[%d]\n", name, file, numLine); \
exit( HIT_ERR_USER ); \
}
#define HIT_ERR_USER
Definition: hit_error.h:56

Definition at line 76 of file hit_error.h.

#define hit_error_here (   name)    hit_error(name, __FILE__, __LINE__)

Definition at line 87 of file hit_error.h.

#define HIT_NOT_USED (   x)    ((void)(x))

Definition at line 50 of file hit_error.h.

#define HIT_OK   0

Definition at line 53 of file hit_error.h.

#define hit_warning (   name,
  file,
  numLine 
)
Value:
{ \
fprintf(stderr,"Hit Programmer, RunTime-Warning: %s, in %s[%d]\n", name, file, numLine); \
}

Definition at line 82 of file hit_error.h.

#define hit_warning_here (   name)    hit_warning(name, __FILE__, __LINE__)

Definition at line 88 of file hit_error.h.

#define hit_warnInternal (   routine,
  text,
  extraParam,
  file,
  numLine 
)
Value:
{ \
fprintf(stderr,"Hit RunTime-Warning (%s): Internal - %s %s, used in %s[%d]\n", routine, text, extraParam, file, numLine); \
}

Definition at line 69 of file hit_error.h.

Function Documentation

char* get_gdb_trace ( )

This is a function that return the gdb trace of the current process. It is a usefull function for debugging but it only works in gcc.

Definition at line 45 of file hit_error.c.