VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros
trdll.h File Reference

Go to the source code of this file.

Macros

#define TX_DODECL   0
 
#define TX_CLDECL
 
#define TX_EXDECL   /* no-op */
 
#define TX_CPPDECL   /* no-op */
 
#define TX_CDECL   /* no-op */
 
#define TXDUMMY_DLL_MAIN   /* no-op */
 
#define txdll_h_
 

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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)