"AWAKE" feature
jjames
Posts: 2,908
Just got bit by it.
I opened up an old project, and it had two constants: SLEEP and AWAKE. Well, needless to say, when I compiled, it threw an error. I had no idea what it was until I closed the file and reopened it and AWAKE was in keyword state (default bold blue.)
Took me a few minutes though to actually believe the compiler was pointing me to the right section of code (prior to it being a keyword in the IDE.)
Using NS2 version 2.8.0.285 and compiler version 2.5.1.10.
Just a heads up.
I opened up an old project, and it had two constants: SLEEP and AWAKE. Well, needless to say, when I compiled, it threw an error. I had no idea what it was until I closed the file and reopened it and AWAKE was in keyword state (default bold blue.)
Took me a few minutes though to actually believe the compiler was pointing me to the right section of code (prior to it being a keyword in the IDE.)
Using NS2 version 2.8.0.285 and compiler version 2.5.1.10.
Just a heads up.
0
Comments
i've learned to prefix my variables/constants
nSleep and nAwake
Yeah - wasn't my code. This was code that was written before I got here. Not pointing any fingers though.