The __declspec Declarator

The __declspec(arg) declarator is a convention adopted from Win32 compilers to extend the type system. All Carbide compilers recognize this declarator.

The __declspec declarator must appear before the name of the object as shown below:

__declspec(arg) int foo();
class __declspec(arg) bar { ... };

The list of valid arguments are grouped by targets: