Skip to content

CppAttribute

1 min read

Import: import system.interop;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

CppAttribute

Binds a class, unmanaged struct, or external function to a C++ declaration. Supply a header relative to the package’s native/include/ and an optional qualified C++ name.

public struct CppAttribute

Header file declaring the foreign symbol.

public header: string

name

Qualified C++ name to bind, when it differs from the Dream name.

public name: Option<string>