Core Function DLLStructGetDef
From Sputnik Wiki
(Difference between revisions)
(→Example) |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 17: | Line 17: | ||
Success: The <def string> of the DLLStruct. | Success: The <def string> of the DLLStruct. | ||
− | Failure: | + | Failure: empty string. |
=== Remarks === | === Remarks === |
Latest revision as of 12:37, 14 June 2015
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);