Imported Upstream version 58.1
[platform/upstream/icu.git] / source / tools / genrb / errmsg.h
1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 *
6 *   Copyright (C) 1998-2016, International Business Machines
7 *   Corporation and others.  All Rights Reserved.
8 *
9 *******************************************************************************
10 *
11 * File error.h
12 *
13 * Modification History:
14 *
15 *   Date        Name        Description
16 *   05/28/99    stephen     Creation.
17 *******************************************************************************
18 */
19
20 #ifndef ERROR_H
21 #define ERROR_H 1
22
23 #include "unicode/utypes.h"
24
25 U_CDECL_BEGIN
26
27 extern const char *gCurrentFileName;
28
29 U_CFUNC void error(uint32_t linenumber, const char *msg, ...);
30 U_CFUNC void warning(uint32_t linenumber, const char *msg, ...);
31
32 /* Show warnings? */
33 U_CFUNC void setShowWarning(UBool val);
34 U_CFUNC UBool getShowWarning(void);
35
36 /* strict */
37 U_CFUNC void setStrict(UBool val);
38 U_CFUNC UBool isStrict(void);
39
40 /* verbosity */
41 U_CFUNC void setVerbose(UBool val);
42 U_CFUNC UBool isVerbose(void);
43
44 U_CDECL_END
45
46 #endif