| | Re: Having trouble with -D option
|
|
You found a bug - NQC is actually defining D to be the tokens =1, which then leads to a lot of confusion later on. Basically I bungled the pointer math. I fixed the source so the next release (2.1 final) should be fine. I'll probably release 2.1 in (...) (25 years ago, 11-Feb-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Having trouble with -D option
|
|
(...) Same with 2.1b3. FWIW, #ifdef D task main() {} #endif works as expected. D is getting defined, just not to 1. (Or to any number.) (25 years ago, 11-Feb-00, to lugnet.robotics.rcx.nqc)
|
|
| | Having trouble with -D option
|
|
If I compile this program (named d.nqc): /* nqc program */ #if (D == 1) task main() {} #endif with the command: nqc -DD=1 d.nqc I get the following error: # Error: syntax error in expression File "d.nqc" ; line 2 # #if (D == 1) # ^ #---...--- # 1 (...) (25 years ago, 10-Feb-00, to lugnet.robotics.rcx.nqc)
|
|
| | nqc.mattdm.org
|
|
I set up (URL) to be the permanent home of the Linux binaries and RPM packages I'm building for Dave. The old URL will still work -- it just gets redirected. (25 years ago, 6-Feb-00, to lugnet.robotics.rcx.nqc)
|
|
| | Re: lego photo scanner... Quite C?
|
|
(...) Y'know, this is a cute name, but it's kind of confusing! (25 years ago, 5-Feb-00, to lugnet.robotics.rcx.nqc, lugnet.robotics.rcx)
|