Changeset 3169 for code/branches/pch/src
- Timestamp:
- Jun 14, 2009, 6:35:31 PM (15 years ago)
- Location:
- code/branches/pch/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/OrxonoxConfig.h.in
r3167 r3169 140 140 * Apple Settings 141 141 *-------------------------------*/ 142 143 144 /*---------------------------------145 * Special Macros146 *-------------------------------*/147 #define MACRO_CONCATENATE_AUX(a, b) a##b148 #define MACRO_CONCATENATE(a, b) MACRO_CONCATENATE_AUX(a, b)149 #define MACRO_QUOTEME_AUX(x) #x150 #define MACRO_QUOTEME(x) MACRO_QUOTEME_AUX(x)151 142 152 143 -
code/branches/pch/src/SpecialConfig.h.in
r3167 r3169 41 41 42 42 #include "OrxonoxConfig.h" 43 #include <boost/preprocessor/stringize.hpp> 43 44 44 45 /** … … 81 82 const char ORXONOX_MEDIA_DEV_PATH[] = "@CMAKE_MEDIA_OUTPUT_DIRECTORY@"; 82 83 #ifdef CMAKE_CONFIGURATION_TYPES 83 const char ORXONOX_CONFIG_DEV_PATH[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@/" MACRO_QUOTEME(CMAKE_BUILD_TYPE);84 const char ORXONOX_LOG_DEV_PATH[] = "@CMAKE_LOG_OUTPUT_DIRECTORY@/" MACRO_QUOTEME(CMAKE_BUILD_TYPE);84 const char ORXONOX_CONFIG_DEV_PATH[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@/" BOOST_PP_STRINGIZE(CMAKE_BUILD_TYPE); 85 const char ORXONOX_LOG_DEV_PATH[] = "@CMAKE_LOG_OUTPUT_DIRECTORY@/" BOOST_PP_STRINGIZE(CMAKE_BUILD_TYPE); 85 86 #else 86 87 const char ORXONOX_CONFIG_DEV_PATH[] = "@CMAKE_CONFIG_OUTPUT_DIRECTORY@"; -
code/branches/pch/src/core/Game.h
r3159 r3169 44 44 #include <vector> 45 45 #include <boost/shared_ptr.hpp> 46 #include <boost/preprocessor/cat.hpp> 46 47 47 48 #include "OrxonoxClass.h" … … 53 54 */ 54 55 #define AddGameState(classname, ...) \ 55 static bool MACRO_CONCATENATE(bGameStateDummy_##classname, __LINE__) = orxonox::Game::addGameState(new classname(__VA_ARGS__))56 static bool BOOST_PP_CAT(bGameStateDummy_##classname, __LINE__) = orxonox::Game::addGameState(new classname(__VA_ARGS__)) 56 57 57 58 // tolua_begin -
code/branches/pch/src/network/NetworkFunction.h
r3154 r3169 36 36 #include <map> 37 37 #include <cassert> 38 #include <boost/preprocessor/cat.hpp> 38 39 #include "util/MultiType.h" 39 40 #include "core/Functor.h" … … 215 216 216 217 #define registerStaticNetworkFunction( functionPointer ) \ 217 static void* MACRO_CONCATENATE( NETWORK_FUNCTION_, __LINE__ ) = registerStaticNetworkFunctionFct( functionPointer, #functionPointer );218 static void* BOOST_PP_CAT( NETWORK_FUNCTION_, __LINE__ ) = registerStaticNetworkFunctionFct( functionPointer, #functionPointer ); 218 219 #define registerMemberNetworkFunction( class, function ) \ 219 static void* MACRO_CONCATENATE( NETWORK_FUNCTION_##class, __LINE__ ) = registerMemberNetworkFunctionFct<class>( &class::function, #class "_" #function);220 static void* BOOST_PP_CAT( NETWORK_FUNCTION_##class, __LINE__ ) = registerMemberNetworkFunctionFct<class>( &class::function, #class "_" #function); 220 221 // call it with functionPointer, clientID, args 221 222 #define callStaticNetworkFunction( functionPointer, ...) \
Note: See TracChangeset
for help on using the changeset viewer.