Blame src/mpi/romio/mpl/include/mpl_msg.h
|
Packit Service |
c5cf8c |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
|
|
Packit Service |
c5cf8c |
/*
|
|
Packit Service |
c5cf8c |
* (C) 2005 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
* See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
*/
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#ifndef MPL_MSG_H_INCLUDED
|
|
Packit Service |
c5cf8c |
#define MPL_MSG_H_INCLUDED
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#include "mpl.h"
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#if defined(MPL_HAVE_MACRO_VA_ARGS)
|
|
Packit Service |
c5cf8c |
#define MPL_error_printf(...) fprintf(stderr,__VA_ARGS__)
|
|
Packit Service |
c5cf8c |
#else
|
|
Packit Service |
c5cf8c |
#define MPL_error_printf printf
|
|
Packit Service |
c5cf8c |
#endif
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
/* These routines are used to ensure that messages are sent to the
|
|
Packit Service |
c5cf8c |
* appropriate output and (eventually) are properly
|
|
Packit Service |
c5cf8c |
* internationalized */
|
|
Packit Service |
c5cf8c |
int MPL_usage_printf(mpl_const char *str, ...) ATTRIBUTE((format(printf, 1, 2)));
|
|
Packit Service |
c5cf8c |
int MPL_msg_printf(mpl_const char *str, ...) ATTRIBUTE((format(printf, 1, 2)));
|
|
Packit Service |
c5cf8c |
int MPL_internal_error_printf(mpl_const char *str, ...) ATTRIBUTE((format(printf, 1, 2)));
|
|
Packit Service |
c5cf8c |
int MPL_internal_sys_error_printf(mpl_const char *, int, mpl_const char *str,
|
|
Packit Service |
c5cf8c |
...) ATTRIBUTE((format(printf, 3, 4)));
|
|
Packit Service |
c5cf8c |
void MPL_exit(int);
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
#endif /* MPL_MSG_H_INCLUDED */
|