Commit 363cb8bc authored by thakis@chromium.org's avatar thakis@chromium.org

win/clang: Don't token-paste ( onto function name.

Fixes

..\..\win8\metro_driver\winrt_utils.cc(80,1) :  error(clang): pasting formed 'CreateString(', an invalid preprocessing token [-Winvalid-token-paste]
IMPLEMENT_CREATE_PROPERTY(String, HSTRING);
^
..\..\win8\metro_driver\winrt_utils.cc(54,47) :  note(clang): expanded from macro 'IMPLEMENT_CREATE_PROPERTY'
  hr = property_value_statics->Create ## Name ## ( \
                                              ^

BUG=82385
TBR=grt@chromium.org

Review URL: https://codereview.chromium.org/373423004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282853 0039d316-1c4b-4281-b951-d872f2087c98
parent efea5c8a
......@@ -51,7 +51,7 @@ HRESULT Create ## Name ## Property(Type value, \
RuntimeClass_Windows_Foundation_PropertyValue, \
property_value_statics.GetAddressOf()); \
CheckHR(hr, "Can't create IPropertyValueStatics"); \
hr = property_value_statics->Create ## Name ## ( \
hr = property_value_statics->Create ## Name ( \
value, \
reinterpret_cast<IInspectable**>(prop)); \
CheckHR(hr, "Failed to create Property"); \
......@@ -60,10 +60,10 @@ HRESULT Create ## Name ## Property(Type value, \
#define COMPARE_ATOMIC_PROPERTY_VALUES(Name, Type) \
Type lhs_value; \
hr = lhs->Get ## Name ##(&lhs_value); \
hr = lhs->Get ## Name (&lhs_value); \
CheckHR(hr, "Can't get value for lhs"); \
Type rhs_value; \
hr = rhs->Get ## Name ##(&rhs_value); \
hr = rhs->Get ## Name (&rhs_value); \
CheckHR(hr, "Can't get value for rhs"); \
if (lhs_value < rhs_value) \
*result = -1; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment