ILE C/C++ provides a #pragma descriptor directive to identify functions whose arguments have operational descriptors. You can retrieve the information from an operational descriptor using the ILE bindable APIs Retrieve Operational Descriptor Information (CEEDOD) and Get Descriptive Information About a String Argument (CEESGI). The ILE C/C++ supports operational descriptors for string arguments.
The following figure shows how to declare a function that requires operational descriptors for some of its arguments.
Figure 251. ILE C Source that Declares a Function that Requires Operational Descriptors
|
A function that is named func() is declared. The #pragma descriptor for func() specifies that the ILE C compiler must generate string operational descriptors for the first and fourth arguments of func() whenever func() is called.
The following figure shows that the #pragma descriptor for func1 with a #pragma descriptor directive for the function in a header file oper_desc.h.
Figure 252. ILE C Source to Generate Operational Descriptors
|
A function that is named func1() is declared. The #pragma descriptor for func1() specifies that the ILE C compiler must generate string operational descriptors for the three arguments.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.