Import Debian changes 20180207-1
[hcoop/debian/mlton.git] / runtime / util / die.h
CommitLineData
7f918cf1
CE
1/* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
4 *
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
7 */
8
9/* issue error message and exit */
10PRIVATE extern void die (const char *fmt, ...)
11 __attribute__ ((format(printf, 1, 2)))
12 __attribute__ ((noreturn));
13/* issue error message and exit. Also print strerror(errno). */
14PRIVATE extern void diee (const char *fmt, ...)
15 __attribute__ ((format(printf, 1, 2)))
16 __attribute__ ((noreturn));