Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 5:37:15 PM (9 years ago)
Author:
landauf
Message:

callStaticNetworkFunction() and callMemberNetworkFunction() are now template functions instead of macros.
simplified function call interface: always pass five MultiType-references. Check if MultiType.null() evaluates to true to see if the argument was defined.
moved references to NetworkFunctionManager to NetworkFunctionIncludes.cc.
this also fixed a linker error in MSVC by including NetworkFunctionIncludes.h in a build-unit inside the network library.

File:
1 edited

Legend:

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

    r10475 r10478  
    193193};
    194194
    195 template<class T> inline void copyPtr( T ptr, NetworkFunctionPointer& destptr)
    196 {
    197   if( sizeof(NetworkFunctionPointer)-sizeof(T) > 0)
    198     memset((uint8_t*)&destptr + sizeof(T), 0, sizeof(NetworkFunctionPointer)-sizeof(T));
    199   T p2 = ptr;
    200   memcpy( &destptr, &p2, sizeof(T) );
    201 //   for(unsigned int i=0; i<(sizeof(T)-1/4)+1; i++)
    202 //     *((uint32_t*)destptr+i) = p2>>32*i;
    203 }
    204 
    205195}
    206196
Note: See TracChangeset for help on using the changeset viewer.