25 const char* nm =
typeid(t).name();
26 while ( *nm >=
'0' && *nm <=
'9' ) nm++;
35 mGlobal(Basic)
void programmerErrMsg(
const char* msg,
const char* cname,
36 const char* fnm,
int linenr);
39 # define pErrMsg(msg) \ 40 OD::programmerErrMsg(msg,::className(*this),__FILE__,__LINE__) 43 #define pErrMsgOnce(msg) \ 45 mDefineStaticLocalObject( bool, __message_shown__, = false ); \ 46 if ( !__message_shown__ ) \ 48 __message_shown__ = true; \ 54 # define pFreeFnErrMsg(msg) \ 55 OD::programmerErrMsg( msg, __func__, __FILE__, __LINE__ ) 61 # define pErrMsgOnce(msg) 62 # define pFreeFnErrMsg(msg) const char * className(const T &t)
Definition: errmsg.h:23
#define mGlobal(module)
Definition: commondefs.h:163
void ErrMsg(const char *, bool progr=false)
OpendTect.
Definition: commontypes.h:29