From 39888ce39f34095d7d6886b7dc8f5115f249248e Mon Sep 17 00:00:00 2001 From: drl7x Date: Tue, 10 Dec 2002 21:57:29 +0000 Subject: [PATCH] Fixed assert failure involving multiple redefines of library functions. i.e. #define printf LIBPORT_UNDEF_printf #undef printf #define printf red_printf Bug was reported by Malcolm Parsons  --- src/uentry.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/uentry.c b/src/uentry.c index 9e59baf..1bf61d0 100644 --- a/src/uentry.c +++ b/src/uentry.c @@ -5830,7 +5830,13 @@ uentry_getParams (uentry l) { ctype ct = l->utype; - llassert (ctype_isFunction (ct)); + /*drl 12/10/2002 changed to fix bug involving multiple redefines of library functions in macros. Bug was reported by Malcolm Parsons + + Old code was simplly llassert (ctype_isFunction (ct) ); + */ + + llassert (ctype_isFunction (ct) || context_inMacro() ); + return (ctype_argsFunction (ct)); } BADDEFAULT; -- 2.45.1