E2002 Only __fastcall functions allowed in __automated section (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index


The calling convention for functions declared in an __automated section must be __fastcall.

Example:

struct__declspec(delphiclass) clxclass
{
__automated:
int__fastcall fooInt(int);// OK
int__cdecl    barInt(int);// Error
};