Skip to content

Commit 072dee9

Browse files
robUx4rhutsAMD
authored andcommitted
Move AMF_UNICODE into Platform.h
It's a common macro that can be used in other places.
1 parent a6fca4a commit 072dee9

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

amf/public/common/TraceAdapter.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -181,20 +181,6 @@ AMF_RESULT AMF_CDECL_CALL AMFTraceFlush();
181181
void AMF_CDECL_CALL AMFTraceW(const wchar_t* src_path, amf_int32 line, amf_int32 level, const wchar_t* scope,
182182
amf_int32 countArgs, const wchar_t* format, ...);
183183

184-
/**
185-
*******************************************************************************
186-
* AMF_UNICODE
187-
*
188-
* @brief
189-
* Macro to convert string constant into wide char string constant
190-
*
191-
* Auxilary AMF_UNICODE_ macro is needed as otherwise it is not possible to use AMF_UNICODE(__FILE__)
192-
* Microsoft macro _T also uses 2 passes to accomplish that
193-
*******************************************************************************
194-
*/
195-
#define AMF_UNICODE(s) AMF_UNICODE_(s)
196-
#define AMF_UNICODE_(s) L ## s
197-
198184
/**
199185
*******************************************************************************
200186
* AMFTrace

amf/public/include/core/Platform.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@
6666

6767
#define AMF_TODO(_todo) (__FILE__ "(" AMF_MACRO_STRING(__LINE__) "): TODO: "_todo)
6868

69+
/**
70+
*******************************************************************************
71+
* AMF_UNICODE
72+
*
73+
* @brief
74+
* Macro to convert string constant into wide char string constant
75+
*
76+
* Auxilary AMF_UNICODE_ macro is needed as otherwise it is not possible to use AMF_UNICODE(__FILE__)
77+
* Microsoft macro _T also uses 2 passes to accomplish that
78+
*******************************************************************************
79+
*/
80+
#define AMF_UNICODE(s) AMF_UNICODE_(s)
81+
#define AMF_UNICODE_(s) L ## s
82+
6983

7084
#if defined(__GNUC__) || defined(__clang__)
7185
#define AMF_ALIGN(n) __attribute__((aligned(n)))

0 commit comments

Comments
 (0)