Created
May 18, 2020 12:09
-
-
Save kevingosse/b4ccef5196b91dd107d93073b9cbc5cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__forceinline static bool IsEnabled(GCEventProvider provider, GCEventKeyword keyword, GCEventLevel level) | |
{ | |
assert(level >= GCEventLevel_None && level < GCEventLevel_Max); | |
size_t index = static_cast<size_t>(provider); | |
return (enabledLevels[index].LoadWithoutBarrier() >= level) | |
&& (enabledKeywords[index].LoadWithoutBarrier() & keyword); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment