#include <dali/public-api/common/dali-common.h>
#include <dali/public-api/signals/functor-delegate.h>
-#ifdef WIN32
-#define STDCALL __stdcall
-#else
-#define STDCALL
-#endif
-
namespace Dali
{
/**
}
else if( !callback.mImpl && callback.mFunction )
{
- typedef R(STDCALL *Function1)();
+ typedef R(*Function1)();
returnVal = (*(reinterpret_cast< Function1 >( callback.mFunction )))();
}
else if( !callback.mImpl && callback.mFunction )
{
// convert function type
- typedef void(STDCALL *Function1)(P1);
+ typedef void(*Function1)(P1);
(*(reinterpret_cast< Function1 >( callback.mFunction )))( param1 );
}
}
else if( !callback.mImpl && callback.mFunction )
{
// convert function type
- typedef R(STDCALL *Function1)(P1);
+ typedef R(*Function1)(P1);
returnVal = (*(reinterpret_cast< Function1 >( callback.mFunction )))( param1 );
}
else if( !callback.mImpl && callback.mFunction )
{
// convert function type
- typedef void(STDCALL *Function2)(P1,P2);
+ typedef void(*Function2)(P1,P2);
(*(reinterpret_cast< Function2 >( callback.mFunction )))( param1, param2 );
}
}
else if( !callback.mImpl && callback.mFunction )
{
// convert function type
- typedef R(STDCALL *Function2)(P1,P2);
+ typedef R(*Function2)(P1,P2);
returnVal = (*(reinterpret_cast< Function2 >( callback.mFunction )))( param1, param2 );
}
else if( !callback.mImpl && callback.mFunction )
{
// convert function type
- typedef void(STDCALL *Function2)(P1,P2,P3);
+ typedef void(*Function2)(P1,P2,P3);
(*(reinterpret_cast< Function2 >( callback.mFunction )))( param1, param2, param3 );
}
}
else if( !callback.mImpl && callback.mFunction )
{
// convert function type
- typedef R(STDCALL *Function2)(P1,P2,P3);
+ typedef R(*Function2)(P1,P2,P3);
returnVal = (*(reinterpret_cast< Function2 >( callback.mFunction )))( param1, param2, param3 );
}
* @brief Function with static linkage.
* @SINCE_1_0.0
*/
- typedef void(STDCALL *Function)(void);
+ typedef void(*Function)(void);
/**
* @brief Member function.
* @SINCE_1_0.0
*/
- typedef void (STDCALL CallbackBase::*MemberFunction)( void );
+ typedef void (CallbackBase::*MemberFunction)( void );
/**
* @brief Used to call the correct member function.