We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c67ddc commit a2e4ee1Copy full SHA for a2e4ee1
1 file changed
include/scratchcpp/valuedata.h
@@ -5,6 +5,7 @@
5
#include <string>
6
7
#include "global.h"
8
+#include "enum_bitmask.h"
9
10
namespace libscratchcpp
11
{
@@ -13,12 +14,15 @@ struct StringPtr;
13
14
15
enum class LIBSCRATCHCPP_EXPORT ValueType
16
- Number = 0,
17
- Bool = 1,
18
- String = 2,
19
- Pointer = 3
+ Void = 0,
+ Number = 1 << 0,
+ Bool = 1 << 1,
20
+ String = 1 << 2,
21
+ Pointer = 1 << 3
22
};
23
24
+constexpr bool enable_enum_bitmask(ValueType);
25
+
26
extern "C"
27
28
/*! \brief The ValueData struct holds the data of Value. It's used in compiled Scratch code for better performance. */
0 commit comments