static char* symname (int var, int scope)
For the address of a function, determine its current name.
Documentation
For the address of a function, determine its current name. The command can be useful for log output.
Please note : The function can only be used to determine Function addresses!
-
Name Type Default Description Return char* Name of the function. The return value is read only, do NOT CHANGE. The result will be overridden on following calls to the function. See here to learn more about functions returning r/o char* values.
var any - Variable or function of any type scope int 0 Where should the function be searched for?
0 : In the internal definition tables of the script interpreter
1 : In the current symbol table of the execution stack
int applyApply a function to all entries of a list. If an error occurs in relation to a list entry, the processing will be interrupted. For the function every script function can be used. In the parameter frameIndex it is stated which position in the function parameter the list element is to be inserted in each case. ... (int fn) { float f = fn (gFrameCurrent frame for which the script is executed. In action scripts of frame placeholders this value equals gItem. In text placeholders the variable contains a reference to the text frame of the current text model. If no frame is valid, the value is 0.); wlogWrite a log file message. Please also note the hints for writing logs. ("", "(%s) %f\n", symnameFor the address of a function, determine its current name. The command can be useful for log output. (fn), f); return 0; } int main () { applyApply a function to all entries of a list. If an error occurs in relation to a list entry, the processing will be interrupted. For the function every script function can be used. In the parameter frameIndex it is stated which position in the function parameter the list element is to be inserted in each case. ... (frame::get_rotate); applyApply a function to all entries of a list. If an error occurs in relation to a list entry, the processing will be interrupted. For the function every script function can be used. In the parameter frameIndex it is stated which position in the function parameter the list element is to be inserted in each case. ... (frame::get_skew); return 0; }
- Since
- v4.1.6 R26001, 30. Sep 2019
- Available
- priint:comet InDesign® Plug-Ins, comet_pdf, Illustrator
- See Also
- reflection
Alphabetic index HTML hierarchy of classes or Java
© Copyright 2003-2024 WERK II GmbH Duisburg |
This documentation is part of the priint:comet InDesign®, InDesign Server® and Illustrator® plug-in and of the comet_pdf packages and is subject to the same license terms as priint:comet itself. The documentation may neither be passed on nor installed on public servers without the consent of WERK II GmbH. The documentation describes the priint:comet scripting language cScript and provides support for solving technical problems when using the priint:comet plugins. The documentation is not a manual for the priint:comet plugins. A manual of the priint:comet plugins can be found here. The documentation has been prepared with the greatest possible care. In case of errors or hints, please do not hesitate to contact our support. However, faulty or incomplete functional descriptions shall in no case result in an obligation on the part of WERK II GmbH to adapt the described item. This copyright notice may not be removed or altered. |