52. Export constructor

The export_constructor module simplifies creation of Daslang structure and classes from C++ side.

In the following example:

[export_constructor]
class Foo {}

Function make`Foo is generated with an export flag; it returns new Foo() object.

All functions and symbols are in “export_constructor” module, use require to get access to it.

require daslib/export_constructor

52.1. Structure macros

export_constructor

implements ‘export_constructor’ macro, adds function make`{StructureName} which makes a new instance of a class or structure