error.c File Reference

#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>

Include dependency graph for error.c:

Go to the source code of this file.

Functions

int Vect_set_fatal_error (int err)
 set behaviour if fatal error occurs in some functions
int Vect_get_fatal_error ()
 get behaviour for fatal error


Function Documentation

int Vect_get_fatal_error ( void   ) 

get behaviour for fatal error

Returns:
GV_FATAL_EXIT(default): print error message and exit, GV_FATAL_PRINT: print error message and return error, GV_FATAL_RETURN: return error
Parameters:
void 

Definition at line 48 of file error.c.

Referenced by Vect__open_old(), and Vect_open_new().

int Vect_set_fatal_error ( int  err  ) 

set behaviour if fatal error occurs in some functions

Returns:
0 on success
Parameters:
GV_FATAL_EXIT(default),: print error message and exit, GV_FATAL_PRINT: print error message and return error, GV_FATAL_RETURN: return error

Definition at line 33 of file error.c.

Referenced by Vect__open_old(), and Vect_open_new().


Generated on Sun Apr 6 17:32:47 2008 for GRASS by  doxygen 1.5.5