Use modern construct 'using' instead of typedef.
[platform/core/uifw/dali-core.git] / dali / integration-api / trace.h
index c884a71..d9faf9f 100644 (file)
@@ -43,7 +43,7 @@ DALI_CORE_API void LogContext( bool start, const char* tag );
 /**
  * typedef for the LogContextFunction function.
  */
-typedef void ( *LogContextFunction )( bool start, const char* tag );
+using LogContextFunction = void ( * )( bool, const char* );
 
 /**
  * A LogContextFunction function has to be installed for every thread that wants to use tracing.
@@ -198,7 +198,7 @@ namespace
  * Used for function tracing. It logs tracing of the fuction from start to end.
  */
 #define DALI_TRACE_FUNCTION( filter ) \
-  Dali::Integration::Trace::Tracer logTraceFunction( filter, __PRETTY_FUNCTION__ );
+  Dali::Integration::Trace::Tracer logTraceFunction( filter, ASSERT_LOCATION );
 
 /**
  * Used for scope tracing. It logs tracing around a scope.