diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2024-07-05 03:51:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 03:51:58 -0400 |
commit | 68db143c8939e12dd569d6ac737213ad856c139b (patch) | |
tree | d5e814329fb19912b69b9804fc68b852674d8277 /src/misc/bitwise.hpp | |
parent | e6191d95341d164eacaf91739c8aa7020dd5c9b6 (diff) | |
parent | b19782c16dffd38ac5651641131a48f8ff961b32 (diff) | |
download | abaddon-portaudio-68db143c8939e12dd569d6ac737213ad856c139b.tar.gz abaddon-portaudio-68db143c8939e12dd569d6ac737213ad856c139b.zip |
Merge pull request #279 from uowuo/stages
Support for stages
Diffstat (limited to 'src/misc/bitwise.hpp')
-rw-r--r-- | src/misc/bitwise.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc/bitwise.hpp b/src/misc/bitwise.hpp index ecce333..4d4cf8f 100644 --- a/src/misc/bitwise.hpp +++ b/src/misc/bitwise.hpp @@ -1,6 +1,13 @@ #pragma once #include <type_traits> +namespace util { +template<typename T> +bool FlagSet(T flags, T value) { + return (flags & value) == value; +} +} // namespace util + template<typename T> struct Bitwise { static const bool enable = false; |