Ada Programming/Pragmas/Convention
Summary
The pragma Convention directs the compiler to represent a type or subprogram using a foreign language convention.
The set of supported foreign languages depends on the compiler implementation. Typically C, C++, COBOL, and Fortran are supported.
Example
typeMy_C_Typeisrecord[...]; -- Ada will represent My_C_Type as a C-style structure.pragmaConvention (C, My_C_Type);
See also
Wikibook
- Ada Programming
 - Ada Programming/Pragmas
 - Ada Programming/Pragmas/Export
 - Ada Programming/Pragmas/Import
 - Ada Programming/Pragmas/Linker_Options