Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2009, 6:35:31 PM (15 years ago)
Author:
rgrieder
Message:

Replacing MACRO_CONCATENATE and MACRO_QUOTEME with the more robust boost versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/network/NetworkFunction.h

    r3154 r3169  
    3636#include <map>
    3737#include <cassert>
     38#include <boost/preprocessor/cat.hpp>
    3839#include "util/MultiType.h"
    3940#include "core/Functor.h"
     
    215216
    216217#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 );
    218219#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);
    220221  // call it with functionPointer, clientID, args
    221222#define callStaticNetworkFunction( functionPointer, ...) \
Note: See TracChangeset for help on using the changeset viewer.