#include <iostream>
#include "abkseed.h"
Include dependency graph for abkassert.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | STACK_DUMP 0; |
#define | abkfatal_breakpoint 0; |
#define | abkwarn_breakpoint 0; |
#define | abkassert(CONDITION, ERRMESSAGE) ((void) 0) |
#define | abkassert2(CONDITION, ERR1, ERR2) ((void) 0) |
#define | abkassert3(CONDITION, ERR1, ERR2, ERR3) ((void) 0) |
#define | abkguess(CONDITION, ERRMESSAGE) ((void) 0) |
#define | abkguess2(CONDITION, ERR1, ERR2) ((void) 0) |
#define | abkguess3(CONDITION, ERR1, ERR2, ERR3) ((void) 0) |
#define | abkfatal(CONDITION, ERRMESSAGE) |
#define | abkfatal2(CONDITION, ERR1, ERR2) |
#define | abkfatal3(CONDITION, ERR1, ERR2, ERR3) |
#define | abkwarn(CONDITION, ERRMESSAGE) |
#define | abkwarn2(CONDITION, ERR1, ERR2) |
#define | abkwarn3(CONDITION, ERR1, ERR2, ERR3) |
Functions | |
void | abkassert_stop_here () |
void | abkguess_stop_here () |
void | abkfatal_stop_here () |
void | abkwarn_stop_here () |
void | abk_dump_stack () |
void | abk_call_debugger () |
const char * | SgnPartOfFileName (const char *fileName) |
char * | BaseFileName (char *filename) |
|
Definition at line 120 of file abkassert.h. Referenced by MD5::getWord(), and SeedHandler::~SeedHandler(). |
|
Definition at line 138 of file abkassert.h. |
|
Definition at line 154 of file abkassert.h. |
|
|
Value: { if (!(CONDITION)) \ { cerr << endl << (ERR1) << (ERR2); \ cerr<<" (Fatal error in " << SgnPartOfFileName(__FILE__) \ << ":" << __LINE__ <<")"<<endl; \ {SeedCleaner clean_err_exit;} \ STACK_DUMP; \ abkfatal_breakpoint; \ abort(); char * __p=(char *) 0;__p[0]=0; \ } \ } Definition at line 209 of file abkassert.h. Referenced by impl_isnumber(), impl_isword(), impl_needcaseword(), impl_needeol(), and impl_noeol(). |
|
Value: { if (!(CONDITION)) \ { cerr << endl << (ERR1) << (ERR2) << (ERR3); \ cerr<<" (Fatal error in " << SgnPartOfFileName(__FILE__) \ << ":" << __LINE__ <<")"<<endl; \ {SeedCleaner clean_err_exit;} \ STACK_DUMP; \ abkfatal_breakpoint; \ abort(); char * __p=(char *) 0;__p[0]=0; \ } \ } Definition at line 221 of file abkassert.h. |
|
Definition at line 93 of file abkassert.h. |
|
Definition at line 167 of file abkassert.h. |
|
Definition at line 179 of file abkassert.h. |
|
Definition at line 191 of file abkassert.h. |
|
Value: { if (!(CONDITION)) \ { cerr << endl << (ERRMESSAGE); \ cerr << " (Warning in " << SgnPartOfFileName(__FILE__) \ << ":" << __LINE__ <<")"<<endl; \ abkwarn_breakpoint; \ } \ } Definition at line 236 of file abkassert.h. Referenced by SeedHandler::_chooseInitNondetSeed(), SeedHandler::_initializeOutFile(), getMemoryUsageEstimate(), parquetfp::DB::getOptimalRangeStart(), Verbosity::operator=(), and parquetfp::DB::updatePlacement(). |
|
Value: { if (!(CONDITION)) \ { cerr << endl << (ERR1) << (ERR2); \ cerr << " (Warning in " << SgnPartOfFileName(__FILE__) \ << ":" << __LINE__ <<")"<<endl; \ abkwarn_breakpoint; \ } \ } Definition at line 245 of file abkassert.h. |
|
Value: { if (!(CONDITION)) \ { cerr << endl << (ERR1) << (ERR2) << (ERR3); \ cerr << " (Warning in " << SgnPartOfFileName(__FILE__) \ << ":" << __LINE__ <<")"<<endl; \ abkwarn_breakpoint; \ } \ } Definition at line 254 of file abkassert.h. |
|
Definition at line 94 of file abkassert.h. |
|
Definition at line 92 of file abkassert.h. |
|
Definition at line 124 of file platfDepend.cxx.
00125 { 00126 #if defined(linux) || defined(sun) || defined(__SUNPRO_CC) 00127 unsigned ProcId=getpid(); 00128 printf("\n --- ATTACHING DEBUGGER to process %d ", ProcId); 00129 printf(" (an ABKGROUP utility) --- \n\n"); 00130 fflush(stdout); 00131 char s[160]; 00132 #if defined(linux) 00133 sprintf(s, "gdb -q /proc/%d/exe %d", ProcId,ProcId); 00134 #else // must be Solaris 00135 sprintf(s, "dbx - %d", ProcId); 00136 #endif 00137 system(s); 00138 printf(" ------------------ CONTINUING -------------- \n"); 00139 fflush(stdout); 00140 #else 00141 fprintf(stderr," abk_call_debugger(): Can't call debugger on this platform\n"); 00142 fflush(stderr); 00143 #endif 00144 return; 00145 } |
|
Definition at line 100 of file platfDepend.cxx.
00101 { 00102 return; 00103 #if defined(linux) || defined(sun) || defined(__SUNPRO_CC) 00104 printf("\n --- ABK GROUP DELIBERATE STACK DUMP ----------- \n\n"); 00105 fflush(stdout); 00106 char s[160]; 00107 unsigned ProcId=getpid(); 00108 #if defined(linux) 00109 sprintf(s, "/bin/echo \"bt \nquit \\n\" | " 00110 "gdb -q /proc/%d/exe %d", ProcId,ProcId); 00111 #else 00112 sprintf(s, "/bin/echo \"where\\ndetach \\n\" | dbx - %d", ProcId); 00113 #endif 00114 system(s); 00115 printf(" ------------------ END STACK DUMP -------------- \n"); 00116 fflush(stdout); 00117 #else 00118 // fprintf(stderr," abk_dump_stack(): Can't dump stack on this platform\n"); 00119 // fflush(stderr); 00120 #endif 00121 return; 00122 } |
|
Definition at line 59 of file abkassert.cxx.
00059 {} |
|
Definition at line 61 of file abkassert.cxx.
00061 {} |
|
Definition at line 60 of file abkassert.cxx.
00060 {} |
|
Definition at line 62 of file abkassert.cxx.
00062 {} |
|
Definition at line 79 of file abkassert.cxx. References pathDelim.
00080 { 00081 char *leftDelim=strrchr(fileName,pathDelim); 00082 if (leftDelim) leftDelim++; 00083 else leftDelim=fileName; 00084 char *rightDelim=strrchr(leftDelim,'.'); 00085 if (rightDelim) *rightDelim='\0'; 00086 return leftDelim; 00087 } |
|
Definition at line 64 of file abkassert.cxx. References pathDelim.
00065 { 00066 const char *sp=fileName; 00067 const char *leftDelim=strchr(fileName,pathDelim); 00068 const char *rightDelim=strrchr(fileName,pathDelim); 00069 while(leftDelim!=rightDelim) 00070 { 00071 sp=++leftDelim; 00072 leftDelim=strchr(sp,pathDelim); 00073 } 00074 return sp; 00075 // static_cast<void>(pathDelimWindows); 00076 // static_cast<void>(pathDelimUnix); 00077 } |