Core Function DLLStructGetDef
From Sputnik Wiki
DLLStructGetDef( <name> )
Contents |
Description
Return the <def string> of a given DLLStruct created by DLLStructCreateDef().
Parameters
name
The name of a DLLStruct created using DLLStructCreateDef.
Return Value
Success: The <def string> of the DLLStruct.
Failure: empty string.
Remarks
None.
Example
This example gets the DefString by direct name created by DLLStructCreateDef:
DLLStructCreateDef("POINT", "int x;int y"); $DefString = DLLStructGetDef("POINT"); println("The def string of 'POINT' is: " . $DefString);
This example gets the DefString by variable created by DLLStructCreate:
$Point = DLLStructCreate("int x; int y"); $DefString = DLLStructGetDef($Point); println("The def string is: " . $DefString);