Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Attempt to) Fix compilation of new props parsing for MSVC
Summary: MSVC doesn't like Clang macros. Oops! Constraints with this bit of code: 1. I'm trying to enforce constexpr in the most obvious, intuitive way possible. Macros are ugly but a "proper" solution would result in 10x as much code that is, totally subjectively, less readable to me. 2. This is evaluating at compile-time a hash of a string which is usually used in the `case` line of a switch statement. For now I'm just hoping that MSVC will allow us to shadow `hash` which Xcode doesn't like. We might need to add a special pragma(s) for MSVC if it still doesn't like this. Changelog: [Internal] Reviewed By: lyahdav Differential Revision: D37529949 fbshipit-source-id: 9aa605a9786bf5d194819ef8dade778875ae744e
- Loading branch information