]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /* |
2 | ******************************************************************************* | |
3 | * | |
2ca993e8 | 4 | * Copyright (C) 1998-2016, International Business Machines |
b75a7d8f A |
5 | * Corporation and others. All Rights Reserved. |
6 | * | |
7 | ******************************************************************************* | |
8 | * | |
9 | * File error.h | |
10 | * | |
11 | * Modification History: | |
12 | * | |
13 | * Date Name Description | |
14 | * 05/28/99 stephen Creation. | |
15 | ******************************************************************************* | |
16 | */ | |
17 | ||
18 | #ifndef ERROR_H | |
19 | #define ERROR_H 1 | |
20 | ||
2ca993e8 A |
21 | #include "unicode/utypes.h" |
22 | ||
4388f060 | 23 | U_CDECL_BEGIN |
b75a7d8f | 24 | |
4388f060 | 25 | extern const char *gCurrentFileName; |
b75a7d8f | 26 | |
4388f060 A |
27 | U_CFUNC void error(uint32_t linenumber, const char *msg, ...); |
28 | U_CFUNC void warning(uint32_t linenumber, const char *msg, ...); | |
b75a7d8f A |
29 | |
30 | /* Show warnings? */ | |
31 | U_CFUNC void setShowWarning(UBool val); | |
32 | U_CFUNC UBool getShowWarning(void); | |
33 | ||
34 | /* strict */ | |
35 | U_CFUNC void setStrict(UBool val); | |
36 | U_CFUNC UBool isStrict(void); | |
37 | ||
38 | /* verbosity */ | |
39 | U_CFUNC void setVerbose(UBool val); | |
40 | U_CFUNC UBool isVerbose(void); | |
4388f060 A |
41 | |
42 | U_CDECL_END | |
43 | ||
b75a7d8f | 44 | #endif |