[Ns-developers] Bugs under DEBUG #define

Sidney Doria ssdoria at gmail.com
Mon Jun 22 01:50:59 PDT 2009


Hi,

I'm trying NS2.34 on Cygwin and Linux;

I was compiling with symbols (to debug) and surprisingly there are
bugs inside DEBUG piece of codes. For instance,

this one:

*shadowing-vis.cc
--------------------------
#ifdef DEBUG
			printf("xx = %f  yy = %f\n", xx, yy);   // (hey, what are these xx and yy?)
			printf("pixel = %x\n", pixel[xIdx + yIdx * width]);
#endif

AND

*aomdv.cc
---------------
#ifdef DEBUG
		fprintf(stderr,"Node %d: Dst - %d, failed local repair\n",index,
rt->rt_dst); // (hey, rt_dst is protected!)
#endif


-- 
Sidney Doria
Redes ad hoc móveis
Doutorado em Computação
UFCG
Brasil

"Nessa jornada, o conhecimento será o seu escudo..."
(Mestre dos Magos no episódio do grimoire de ouro)



More information about the Ns-developers mailing list