summaryrefslogtreecommitdiff
path: root/ucoo/arch/arch.host.cc
diff options
context:
space:
mode:
authorNicolas Schodet2015-09-07 14:51:59 +0200
committerNicolas Schodet2019-10-07 00:44:50 +0200
commit35d889c3444f3d196e6e0415313282db4d381f02 (patch)
tree191fccc90350aa94dc7eec72b75bdfc1f3b4c400 /ucoo/arch/arch.host.cc
parentde2813fdf0f80c278261cf6a996077cd380ee25a (diff)
ucoo: add assert message
Diffstat (limited to 'ucoo/arch/arch.host.cc')
-rw-r--r--ucoo/arch/arch.host.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ucoo/arch/arch.host.cc b/ucoo/arch/arch.host.cc
index 1ddd6a9..431b776 100644
--- a/ucoo/arch/arch.host.cc
+++ b/ucoo/arch/arch.host.cc
@@ -63,6 +63,13 @@ halt ()
}
void
+halt (const char *msg)
+{
+ fprintf (stderr, "halt: %s\n", msg);
+ abort ();
+}
+
+void
halt_perror ()
{
perror ("halt");