Branch: Tag:

2006-03-25

2006-03-25 12:45:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved diagnostics for fatal "Couldn't generate comparison!".

Rev: src/operators.c:1.207

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: operators.c,v 1.206 2005/09/15 15:38:57 grubba Exp $ + || $Id: operators.c,v 1.207 2006/03/25 12:45:51 grubba Exp $   */      #include "global.h"
1865:    else if(CAR(n)->u.sval.u.efun->function == f_ge)    emit0(F_GE);    else -  Pike_fatal("Couldn't generate comparison!\n"); +  Pike_fatal("Couldn't generate comparison!\n" +  "efun->function: %p\n" +  "f_eq: %p\n" +  "f_ne: %p\n" +  "f_lt: %p\n" +  "f_le: %p\n" +  "f_gt: %p\n" +  "f_ge: %p\n", +  CAR(n)->u.sval.u.efun->function, +  f_eq, f_ne, f_lt, f_le, f_gt, f_ge);    return 1;    }    return 0;