]> andersk Git - splint.git/commitdiff
Fixed assert failure involving multiple redefines of library functions.
authordrl7x <drl7x>
Tue, 10 Dec 2002 21:57:29 +0000 (21:57 +0000)
committerdrl7x <drl7x>
Tue, 10 Dec 2002 21:57:29 +0000 (21:57 +0000)
i.e.

#define printf LIBPORT_UNDEF_printf
#undef  printf
#define printf red_printf

Bug was reported by Malcolm Parsons
\a

src/uentry.c

index 9e59bafc1895e4be1d0f928429ffce24c65b9f84..1bf61d04d1d3a868fd30cb50c7ac7b5e3b04eb56 100644 (file)
@@ -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;
This page took 0.059734 seconds and 5 git commands to generate.