Simple utilities sink - stuff that doesn't fit anywhere else / objects in plain C Snapshot
|
00001 /* Copyright (c) Michael Moser (2011) . 3-clause BSD License applies */ 00002 00003 #ifndef __ERRORP_H__ 00004 #define __ERRORP_H__ 00005 00006 00007 /** 00008 * @defgroup ERRORP 00009 * @brief error logging with stack trace (not the symbols, just the addresses). 00010 * @{ 00011 */ 00012 00013 int errorp_open_file(const char *file); 00014 00015 int errorp_is_file_open(); 00016 00017 void errorp_close_file(); 00018 00019 void errorp(int rval, const char *fmt, ... ); 00020 00021 00022 /** 00023 * @} 00024 */ 00025 00026 #endif 00027 00028