melder_fatal.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _melder_fatal_h_
  2. #define _melder_fatal_h_
  3. /* melder_fatal.h
  4. *
  5. * Copyright (C) 1992-2018 Paul Boersma
  6. *
  7. * This code is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * This code is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /*
  21. SYNOPSIS (2018-08-08)
  22. Melder_fatal (args...);
  23. Gives an error message and aborts the program.
  24. Should only be caused by programming errors.
  25. See also Melder_assert ().
  26. */
  27. void Melder_fatal (const MelderArg&,
  28. const MelderArg& = U"", const MelderArg& = U"", const MelderArg& = U"",
  29. const MelderArg& = U"", const MelderArg& = U"", const MelderArg& = U"",
  30. const MelderArg& = U"", const MelderArg& = U"", const MelderArg& = U""
  31. );
  32. void Melder_setFatalProc (void (*p_fatalProc) (conststring32));
  33. /* End of file melder_fatal.h */
  34. #endif