Shadowrun: Awakened 29 September 2011 - Build 871
Export.h
Go to the documentation of this file.
00001 #include "RakNetDefines.h"
00002 
00003 #if defined(_WIN32) && !(defined(__GNUC__)  || defined(__GCCXML__)) && !defined(_RAKNET_LIB) && defined(_RAKNET_DLL)
00004 #define RAK_DLL_EXPORT __declspec(dllexport)
00005 #else
00006 #define RAK_DLL_EXPORT  
00007 #endif
00008 
00009 #define STATIC_FACTORY_DECLARATIONS(x) static x* GetInstance(void); \
00010 static void DestroyInstance( x *i);
00011 
00012 #define STATIC_FACTORY_DEFINITIONS(x,y) x* x::GetInstance(void) {return RakNet::OP_NEW<y>( _FILE_AND_LINE_ );} \
00013 void x::DestroyInstance( x *i) {RakNet::OP_DELETE(( y* ) i, _FILE_AND_LINE_);}

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net