mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 08:46:42 +08:00
Added syntax highlight (#67)
This commit is contained in:
parent
df5df3924e
commit
94f8f95a26
@ -65,7 +65,7 @@ Simply add `enum.h` to your project.
|
||||
class. This seems [difficult to remove][nested]. There is a workaround with
|
||||
`typedef` (or C++11 `using`):
|
||||
|
||||
```
|
||||
```c++
|
||||
BETTER_ENUM(SomePrefix_Color, uint8_t, Red, Green, Blue)
|
||||
|
||||
struct triplet {
|
||||
@ -86,7 +86,7 @@ limited by your compiler's maximum macro argument count.
|
||||
`+` to explicitly promote them to type `Channel`. For example, if you are doing
|
||||
a comparison:
|
||||
|
||||
```
|
||||
```c++
|
||||
channel == +Channel::Red
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user