corretta formattazione

git-svn-id: svn://10.65.10.50/trunk@796 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-12-27 18:47:05 +00:00
parent 90d4aa8901
commit 744cbac27b

View File

@ -1,59 +1,59 @@
#ifndef __CHECKS_H #ifndef __CHECKS_H
#define __CHECKS_H #define __CHECKS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* @FPUB */ /* @FPUB */
int message_box(const char* fmt, ...); int message_box(const char* fmt, ...);
int warning_box(const char* fmt, ...); int warning_box(const char* fmt, ...);
int sorry_box(const char* fmt, ...); int sorry_box(const char* fmt, ...);
int error_box(const char* fmt, ...); int error_box(const char* fmt, ...);
int fatal_box(const char* fmt, ...); int fatal_box(const char* fmt, ...);
int yesno_box(const char* fmt, ...); int yesno_box(const char* fmt, ...);
int yesnocancel_box(const char* fmt, ...); int yesnocancel_box(const char* fmt, ...);
int yesnofatal_box(const char* fmt, ...); int yesnofatal_box(const char* fmt, ...);
int __trace(const char* fmt, ...); int __trace(const char* fmt, ...);
/* @END */ /* @END */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
/* @M /* @M
Utilizzate in fase di debug (definire il simbolo DBG in compilazione) Utilizzate in fase di debug (definire il simbolo DBG in compilazione)
*/ */
#ifdef DBG #ifdef DBG
#define CHECK(p, m) ( (p) ? (void)0 : (void) fatal_box( \ #define CHECK(p, m) ( (p) ? (void)0 : (void) fatal_box( \
"Check failed in %s, line %d:\n\r%s", \ "Check failed in %s, line %d:\n\r%s", \
__FILE__, __LINE__, m) ) __FILE__, __LINE__, m) )
#define CHECKS(p, m, s0) ( (p) ? (void)0 : (void) fatal_box( \ #define CHECKS(p, m, s0) ( (p) ? (void)0 : (void) fatal_box( \
"Check failed in %s, line %d:\n\r%s%s", \ "Check failed in %s, line %d:\n\r%s%s", \
__FILE__, __LINE__, m, s0) ) __FILE__, __LINE__, m, s0) )
#define CHECKD(p, m, d0) ( (p) ? (void)0 : (void) fatal_box( \ #define CHECKD(p, m, d0) ( (p) ? (void)0 : (void) fatal_box( \
"Check failed in %s, line %d:\n\r%s%d", \ "Check failed in %s, line %d:\n\r%s%d", \
__FILE__, __LINE__, m, d0) ) __FILE__, __LINE__, m, d0) )
#else #else
#define CHECK(p, m) #define CHECK(p, m)
#define CHECKS(p, m, s) #define CHECKS(p, m, s)
#define CHECKD(p, m, d) #define CHECKD(p, m, d)
#endif #endif
/* @END */ /* @END */
/* @M /* @M
Utilizzata in fase di debug (definire il simbolo TRC in compilazione) Utilizzata in fase di debug (definire il simbolo TRC in compilazione)
*/ */
#ifdef TRC #ifdef TRC
#define TRACE __trace #define TRACE __trace
#else #else
#define TRACE 1 ? 0 : __trace #define TRACE 1 ? 0 : __trace
#endif #endif
/* @END */ /* @END */
#endif // __CHECKS_H #endif // __CHECKS_H