Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Added inline to REACT_STRUCT's GetStructInfo to use in header files",
"packageName": "react-native-windows",
"email": "vmorozov@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-21T16:24:21.711Z"
}
2 changes: 1 addition & 1 deletion vnext/Microsoft.ReactNative.Cxx/StructInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#define REACT_STRUCT(type) \
struct type; \
winrt::Microsoft::ReactNative::FieldMap GetStructInfo(type *) noexcept { \
inline winrt::Microsoft::ReactNative::FieldMap GetStructInfo(type *) noexcept { \
winrt::Microsoft::ReactNative::FieldMap fieldMap{}; \
winrt::Microsoft::ReactNative::CollectStructFields<type, __COUNTER__>(fieldMap); \
return fieldMap; \
Expand Down