XrmDatabase *XtGetErrorDatabase() { #if GLOBALERRORS return &errorDB; #else return XtAppGetErrorDatabase(_XtDefaultAppContext()); #endif /* GLOBALERRORS */ }
XrmDatabase *XtGetErrorDatabase(void) { XrmDatabase* retval; #if GLOBALERRORS LOCK_PROCESS; retval = &errorDB; UNLOCK_PROCESS; #else retval = XtAppGetErrorDatabase(_XtDefaultAppContext()); #endif /* GLOBALERRORS */ return retval; }