VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
trdll.h File Reference

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}

Macro Definition Documentation

#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@r.nosp@m.bd.c.nosp@m.om) 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}


Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)