![]() |
VR-Forces 4.3 Class Documentation
|
Go to the source code of this file.
Macros | |
| #define | TX_DODECL 0 |
| Export/import declaration for classes and functions Use EXDECL class CPPDECL ... | |
| #define | TX_CLDECL |
| #if !defined (__CURR_DLL) || __COMP_DLL != __CURR_DLL | |
| #define | TX_EXDECL /* no-op */ |
| Goes before "class" to handle DLL export in windows. | |
| #define | TX_CPPDECL /* no-op */ |
| Exports a C++ function properly in a windows DLL. | |
| #define | TX_CDECL /* no-op */ |
| Exports a C function properly in a windows DLL. | |
| #define | TXDUMMY_DLL_MAIN /* no-op */ |
| {secret} | |
| #define | txdll_h_ |
| {secret} | |
| #define TX_DODECL 0 |
Export/import declaration for classes and functions Use EXDECL class CPPDECL ...
for a class Use CPPDECL foo *bar(bletch) for a stand-alone C++ function Use CDECL foo *bar(bletch) for a C function __COMP_DLL must be defined explicitly in Build->Settings->Code Generation __CURR_DLL must be defined in each header in a DLL Work through cases If we're not compiling a DLL, or compiling the wrong DLL do import declarations (0), otherwise do export declarations (1) {secret}
| #define TX_CLDECL |
#if !defined (__CURR_DLL) || __COMP_DLL != __CURR_DLL
Modified by Paul J. Metzger (pjm@rbd.com) to support static link libraries. Here's the original code: #define TX_CLDECL __declspec( dllimport ) #define TX_EXDECL #ifdef __cplusplus #define TX_CDECL extern "C" __declspec(dllimport) #else #define TX_CDECL extern __declspec(dllimport) #endif #define TX_CPPDECL extern __declspec(dllimport) Class declaration. Goes after "class" to handle DLL export in windows.
| #define TX_EXDECL /* no-op */ |
Goes before "class" to handle DLL export in windows.
| #define TX_CPPDECL /* no-op */ |
Exports a C++ function properly in a windows DLL.
| #define TX_CDECL /* no-op */ |
Exports a C function properly in a windows DLL.
| #define TXDUMMY_DLL_MAIN /* no-op */ |
{secret}
| #define txdll_h_ |
{secret}