diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-09-05 18:22:48 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-09-05 18:22:48 +0000 |
commit | ab5fc11024e1560b51089921d8df531a10701d05 (patch) | |
tree | 765f4bedb3cfb923e25eafd6a2756b2e1bccd8f2 /flexdef.h | |
parent | 19b7d283448f4e0bbebbf4dbee94a4fb793a32d2 (diff) |
Added flex_die macro. May need some autoconf massaging.
Added thorough error checking in tables code.
Diffstat (limited to 'flexdef.h')
-rw-r--r-- | flexdef.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -914,6 +914,16 @@ extern void flexerror PROTO ((const char *)); /* Report a fatal error message and terminate. */ extern void flexfatal PROTO ((const char *)); +/* Report a fatal error with a pinpoint, and terminate */ +#define flex_die(msg) \ + do{ \ + fprintf (stderr,\ + _("%s: fatal internal error at %s:%d (%s): %s\n"),\ + program_name, __FILE__, (int)__LINE__,\ + __func__,msg);\ + FLEX_EXIT(1);\ + }while(0) + /* Convert a hexadecimal digit string to an integer value. */ extern int htoi PROTO ((Char[])); |