Pre-processor-like Capability? [message #6433] |
Tue, 11 June 1996 00:00 |
Bruce E Thomason
Messages: 6 Registered: March 1996
|
Junior Member |
|
|
Does anyone know of a IDL/PV-Wave capability that is analogous to
C's preprocessor?
I am particularly interested in efficiently establishing symbolic
references (in the coding process) to constant values for use across
many routines (as #define does w/ the C pre-processor), but to have
these values efficiently accessed at run-time.
The two alternative's I've come up with are:
1. Declaring variables via an "include" (@xxx) file. This has the down
side of potentially including declarations to variables that are not
used in a routine, as well as accessing variables in what (I expect) is
a less efficient manner than accessing a literal value.
2. Using system variables, which I also expect is less efficient that
accessing a literal value.
I would prefer a language intrinsic approach, but might have to settle
for writing/using a (language independent) preprocessor. Does anyone
have a recommendation in this regard?
Thanks in advance!
Bruce
{!}
/~~~~~\....:
{(o)-(o)}
----------------------------------OOo----(_)----oOO--------- ---------
Dynamic System Solutions Real-Time System Developers
331 Franklin St. For Test, Measurement &
Columbus, IN 47201 Scientific Visualization
|
|
|