mdcore  0.1.5
/home/pedro/work/mdcore/src/errs.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * This file is part of mdcore.
00003  * Coypright (c) 2010 Pedro Gonnet (pedro.gonnet@durham.ac.uk)
00004  * 
00005  * This program is free software: you can redistribute it and/or modify
00006  * it under the terms of the GNU Lesser General Public License as published
00007  * by the Free Software Foundation, either version 3 of the License, or
00008  * (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU Lesser General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  * 
00018  ******************************************************************************/
00019 
00020 /* Some defines. */
00021 #define errs_maxstack                           100
00022 
00023 #define errs_err_ok                             0
00024 #define errs_err_io                             -1
00025 
00026 
00027 /* Global variables. */
00028 extern int errs_err;
00029 extern const char *errs_err_msg[];
00030 
00031 
00032 /* Functions. */
00033 #ifdef __cplusplus
00034 extern "C" int errs_register( int id , const char *msg , int line , const char *func , char *file );
00035 extern "C" int errs_dump( FILE *out );
00036 extern "C" void errs_clear( );
00037 #else
00038 int errs_register( int id , const char *msg , int line , const char *func , char *file );
00039 int errs_dump( FILE *out );
00040 void errs_clear( );
00041 #endif
 All Data Structures Files Functions Variables Typedefs Enumerator Defines