Modifier Use with Description
const1 Variables Prevents changes to object.
volatile1 Variables Prevents register allocation and some optimization. Warns compiler that object might be subject to outside change during evaluation.
__cdecl2 Functions Forces C argument-passing convention. Affects linker and link-time names.
__cdecl2 Variables Forces global identifier case-sensitivity and leading underscores in C.
__pascal Function Forces Pascal argument-passing convention. Affects linker and link- time names.
__pascal Variables Forces global identifier case-insensitivity with no leading underscores in C.
__import Functions/classes Tells the compiler which functions or classes to import.
__export Functions/classes Tells the compiler which functions or classes to export.
__declspec(dllimport) Functions/classes Tells the compiler which functions or classes to import. This is the preferred method.
__declspec(dllexport) Functions/classes Tells the compiler which functions or classes to export. This is the preferred method.
__fastcall Functions Forces register parameter passing convention. Affects the linker and link-time names.
__stdcall Function Forces the standard WIN32 argument-passing convention.
1. C++ extends const and volatile to include classes and member functions.
2. This is the default.
No comments:
Post a Comment