Skip to content

Commit 5d6216d

Browse files
committed
Compiler: Allow StaticType bitmasking
1 parent 3619dcc commit 5d6216d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/scratchcpp/compiler.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ class LIBSCRATCHCPP_EXPORT Compiler
3131
public:
3232
enum class StaticType
3333
{
34-
Void,
35-
Number,
36-
Bool,
37-
String,
38-
Pointer,
39-
Unknown
34+
Unknown = 0,
35+
Void = 1 << 0,
36+
Number = 1 << 1,
37+
Bool = 1 << 2,
38+
String = 1 << 3,
39+
Pointer = 1 << 4
4040
};
4141

4242
enum class CodeType

0 commit comments

Comments
 (0)