Skip to content

destroy

NikkoTC edited this page Sep 4, 2023 · 5 revisions

With this function you can destroy the class instance.
Instance of class will execute method named _destructor.


Syntax

destroy(inst, args...);
Argument Description
inst The class instance struct
args... Destructor arguments

Returns

N/A


Example

destroy(inst);

The above code will destroy an instance of class.