errmsg.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef ERROR_H
  20. #define ERROR_H 1
  21. #include "unicode/utypes.h"
  22. U_CDECL_BEGIN
  23. extern const char *gCurrentFileName;
  24. U_CFUNC void error(uint32_t linenumber, const char *msg, ...);
  25. U_CFUNC void warning(uint32_t linenumber, const char *msg, ...);
  26. /* Show warnings? */
  27. U_CFUNC void setShowWarning(UBool val);
  28. U_CFUNC UBool getShowWarning(void);
  29. /* strict */
  30. U_CFUNC void setStrict(UBool val);
  31. U_CFUNC UBool isStrict(void);
  32. /* verbosity */
  33. U_CFUNC void setVerbose(UBool val);
  34. U_CFUNC UBool isVerbose(void);
  35. U_CDECL_END
  36. #endif