1// © 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
25U_CDECL_BEGIN
26
27extern const char *gCurrentFileName;
28
29U_CFUNC void error(uint32_t linenumber, const char *msg, ...);
30U_CFUNC void warning(uint32_t linenumber, const char *msg, ...);
31
32/* Show warnings? */
33U_CFUNC void setShowWarning(UBool val);
34U_CFUNC UBool getShowWarning(void);
35
36/* strict */
37U_CFUNC void setStrict(UBool val);
38U_CFUNC UBool isStrict(void);
39
40/* verbosity */
41U_CFUNC void setVerbose(UBool val);
42U_CFUNC UBool isVerbose(void);
43
44U_CDECL_END
45
46#endif
47