From 9e5ef05a592d637f115b8a8b0b61da940d7bbbe4 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sat, 9 Jan 2016 16:25:17 +0100 Subject: Better abort messages. --- lout/misc.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lout') 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)); -- cgit v1.2.3