![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DXL conditional compilation Topic Summary: Created On: 22-Sep-2006 10:26 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all
![]() does anybody have any idea about using conditional compilation (C-like) with DXL? I want to execute some code for test only but keep it within the dxl-module after the test was finished. Regards Darius |
|
![]() |
|
![]() |
|
Can't do it I am afraid.
#includes are included before the file is interpreted and there is no #ifdef stuff. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Since DXL is interpreted, the question is irrelevant.
Your best bet is to conditionally execute the code, based on the value of a bool defined somewhere. For development, you set the bool (call it 'development', for instance) to true, for release you set it to false. Your 'conditional code' then gets surrounded by 'if (development) { ... }', and you have a mechanism that does what you want, just not quite how you wanted it... Paul. ------------------------- Paul dot Tiplady at TRW dot com TRW Automotive |
|
![]() |
|
![]() |
|
Hi Tony, hi Paul
thanx for ur answers. I also thought about executing conditional code using a bool value within the 'if' statement but I hoped that would be a nicer way to do this like setting XFLAGS or whatever. Does something like C++'s try/throw/catch exist for DXL or have u ever thought how to implement it? In my opinion it could be a usefull feature for DOORS programmers. Regards Darius |
|
![]() |
Telelogic DOORS
» General Discussion
»
DXL conditional compilation
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.