michael@0: /* michael@0: ******************************************************************************* michael@0: * michael@0: * Copyright (C) 1998-2011, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ******************************************************************************* michael@0: * michael@0: * File error.h michael@0: * michael@0: * Modification History: michael@0: * michael@0: * Date Name Description michael@0: * 05/28/99 stephen Creation. michael@0: ******************************************************************************* michael@0: */ michael@0: michael@0: #ifndef ERROR_H michael@0: #define ERROR_H 1 michael@0: michael@0: U_CDECL_BEGIN michael@0: michael@0: extern const char *gCurrentFileName; michael@0: michael@0: U_CFUNC void error(uint32_t linenumber, const char *msg, ...); michael@0: U_CFUNC void warning(uint32_t linenumber, const char *msg, ...); michael@0: michael@0: /* Show warnings? */ michael@0: U_CFUNC void setShowWarning(UBool val); michael@0: U_CFUNC UBool getShowWarning(void); michael@0: michael@0: /* strict */ michael@0: U_CFUNC void setStrict(UBool val); michael@0: U_CFUNC UBool isStrict(void); michael@0: michael@0: /* verbosity */ michael@0: U_CFUNC void setVerbose(UBool val); michael@0: U_CFUNC UBool isVerbose(void); michael@0: michael@0: U_CDECL_END michael@0: michael@0: #endif