Subject:
|
Brick Constants in NQC/Bricx
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Wed, 8 Jan 2003 13:15:53 GMT
|
Viewed:
|
551 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
Are there predefined constants generated by Bricx or NQC that identifies the
Brick (RCX, SCout ...) to wich the generated code is targeted for?
It would be really usefull to write "multi-Brick" code in a single source
trough the use of #ifdef.
Paulo Sérgio Tesche
|
|
Message has 2 Replies: ![](/news/x.gif) | | Re: Brick Constants in NQC/Bricx
|
| (...) Yes - I don't know about Bricx - but the NQC example programs contain one that says: #ifdef __RCX ...and (more significantly) the system file 'compiler/rcx2.nqh' contains #if __RCX==2 #if defined(__SCOUT) ...and a bunch of other defines (...) (21 years ago, 8-Jan-03, to lugnet.robotics)
|
5 Messages in This Thread: ![You are here](/news/here.gif) ![](/news/246.gif) ![Re: Brick Constants in NQC/Bricx -Brian B. Alano (8-Jan-03 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Brick Constants in NQC/Bricx -Paulo Sergio Tesche (8-Jan-03 to lugnet.robotics)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Brick Constants in NQC/Bricx -lego-robotics@crynwr.com (Steve Baker) (8-Jan-03 to lugnet.robotics)](/news/x.gif) ![](/news/46.gif) ![Re: Brick Constants in NQC/Bricx -Dave Baum (9-Jan-03 to lugnet.robotics)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|