Home »
Public Forums »
archive »
Re: Using cpp with IDL
Re: Using cpp with IDL [message #555] |
Wed, 07 October 1992 14:38 |
benell
Messages: 7 Registered: September 1992
|
Junior Member |
|
|
In article <1992Oct7.195102.10633@colorado.edu> knowles@news.Colorado.EDU (Ken Knowles) writes:
> Has anyone tried to use the C preprocessor to fix some of the
> shortcomings of IDL? Here's a few examples of what I have in
> mind:
>
> Problem: It's difficult to modify common block definitions which
> must appear in each procedure that references the common block.
> Solution: Write one definition in a separate file and then
> use the #include directive.
>
you dont have to use a #define directive. Use the "@". If file test.inc
contains common block definitions, just put the following command in each
file that needs the common blocks:
@test.inc
Be sure that the "@" is in the first column of the program file.
> Problem: Debugging is awkward, debug code must be commented out
> and manually uncommented.
> Solution: conditional compilation with #ifdef DEBUG directive.
>
try using keywords and the KEYWORD_SET() logical function.
|
|
|
Current Time: Fri Oct 10 14:16:09 PDT 2025
Total time taken to generate the page: 0.08645 seconds