[ns] assert() function not workin
zze-TOUROLLE Benjamin RD-CORE-CAE
benjamin.tourolle at rd.francetelecom.com
Mon Apr 17 23:42:46 PDT 2006
I think that (a = b) is not a boolean expression. It means that it is probably not the function you are expecting. In C/C++ the operator "=" is not the comparison operator but the affectation one. If you want to compare 'a' and 'b', you must write "assert(a == b)".
De : ns-users-bounces at ISI.EDU [mailto:ns-users-bounces at ISI.EDU] De la part de Vinod
Envoyé : dimanche 16 avril 2006 11:17
À : ns-users at ISI.EDU
Objet : [ns] assert() function not workin
can any one tell me why the assert() function is not working in ns-2
implementation of AODV. Should we need to enable it somehow?
I mean assert(a = b) is not giving any error even though a !=b . I checked
this by keeping an if stmt. after that.
also is there any command line param for 'ns' to enable debugging ? I
remember something of the sort of "-st" in the command line but i forgot.
Basically i want to enable all the #ifdef DEBUG <stmts> #endif statments.
plz let me know,
On Sun, 16 Apr 2006, Vinod wrote:
> ive a doubt in the AODV implementation in ns-2.
> Can anyone tell me a way to find the source of the pkt, given only the
> "Packet P". That is ... I want to know the "originator" of the pkt.
> Vinod Kone,
> Btech,Computer Science,
> VIII sem,
> Room 177,Kapili,
> IIT Guwahati.
More information about the Ns-users