6 #ifndef HECMW_UTIL_INCLUDED 
    7 #define HECMW_UTIL_INCLUDED 
   30 #define HECMW_DEBUG(args) \ 
   31   (HECMW_printerr("DEBUG: "), HECMW_printerr args, HECMW_printerr("\n"))
 
   33 #define HECMW_assert(cond) assert(cond) 
   35 #define HECMW_assert(cond) \ 
   36   HECMW_assert_((cond) ? 1 : 0, #cond, __FILE__, __LINE__) 
   39 #define HECMW_DEBUG(args) ((void)0) 
   40 #define HECMW_assert(cond) ((void)0) 
   43 #define HECMW_check_condition(cond, isabort) \ 
   44   HECMW_check_condition_((cond) ? 1 : 0, #cond, isabort, __FILE__, __LINE__); 
   54 extern void HECMW_assert_(
int cond, 
char *cond_str, 
char *file, 
int line);
 
   57                                   char *file, 
int line);
 
   67 extern void HECMW_print_msg(
int loglv, 
int msgno, 
const char *fmt, ...);
 
   69 extern void HECMW_print_vmsg(
int loglv, 
int msgno, 
const char *fmt, va_list ap);
 
   71 extern int HECMW_snprintf(
char *msg, 
size_t size, 
const char *format, ...);
 
void HECMW_abort(HECMW_Comm comm)
void HECMW_fprintf(FILE *fp, char *fmt,...)
int HECMW_vsnprintf(char *msg, size_t size, const char *format, va_list ap)
int HECMW_snprintf(char *msg, size_t size, const char *format,...)
void HECMW_print_vmsg(int loglv, int msgno, const char *fmt, va_list ap)
void HECMW_printerr(char *fmt,...)
void HECMW_print_error(void)
char * HECMW_get_date(void)
int HECMW_check_condition_(int cond, char *cond_str, int isabort, char *file, int line)
char * HECMW_toupper(char *s)
char * HECMW_get_date_r(char *buf, int len)
char * HECMW_tolower(char *s)
void HECMW_assert_(int cond, char *cond_str, char *file, int line)
void HECMW_print_msg(int loglv, int msgno, const char *fmt,...)