aboutsummaryrefslogtreecommitdiff
path: root/lout/misc.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-01-09 16:25:17 +0100
committerSebastian Geerken <devnull@localhost>2016-01-09 16:25:17 +0100
commit9e5ef05a592d637f115b8a8b0b61da940d7bbbe4 (patch)
tree16fff5f08f8827ec869132c53a231d456a50018e /lout/misc.hh
parentc9199eabe605b94cbfc47ac356a651cc086a6747 (diff)
Better abort messages.
Diffstat (limited to 'lout/misc.hh')
-rw-r--r--lout/misc.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/lout/misc.hh b/lout/misc.hh
index 946ed821..24578f02 100644
--- a/lout/misc.hh
+++ b/lout/misc.hh
@@ -38,6 +38,12 @@ inline void assertNotReached ()
abort ();
}
+inline void notImplemented (const char *name)
+{
+ fprintf (stderr, "*** [%s] Not implemented: %s ***\n", prgName, name);
+ abort ();
+}
+
inline int roundInt(double d)
{
return (int) ((d > 0) ? (d + 0.5) : (d - 0.5));