comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Using cpp with IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Using cpp with IDL [message #555] Wed, 07 October 1992 14:38
benell is currently offline  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.
[Message index]
 
Read Message
Previous Topic: Using cpp with IDL
Next Topic: CONTTW.PRO and EXPAND.PRO - some bug fixes, enhancements

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:16:09 PDT 2025

Total time taken to generate the page: 0.08645 seconds