mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 17:38:06 +00:00
* Added cpp minified enums * Update generated files * remove initializer and fix comma * Fix .gitignore * Fix comma * Add tests for cpp minify enums
This commit is contained in:
committed by
GitHub
parent
83e7a98f69
commit
879622fc57
26
tests/minified_enums/enums_generated.h
Normal file
26
tests/minified_enums/enums_generated.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// automatically generated by the FlatBuffers compiler, do not modify
|
||||
|
||||
|
||||
#ifndef FLATBUFFERS_GENERATED_ENUMS_H_
|
||||
#define FLATBUFFERS_GENERATED_ENUMS_H_
|
||||
|
||||
#include "flatbuffers/flatbuffers.h"
|
||||
|
||||
// Ensure the included flatbuffers.h is the same version as when this file was
|
||||
// generated, otherwise it may not be compatible.
|
||||
static_assert(FLATBUFFERS_VERSION_MAJOR == 22 &&
|
||||
FLATBUFFERS_VERSION_MINOR == 9 &&
|
||||
FLATBUFFERS_VERSION_REVISION == 29,
|
||||
"Non-compatible flatbuffers version included");
|
||||
|
||||
enum Color : int32_t {
|
||||
Color_Red = 1,
|
||||
Color_Blue = 2,
|
||||
Color_Orange = 3
|
||||
};
|
||||
enum Size : int32_t {
|
||||
Size_Small = 10,
|
||||
Size_Large = 100,
|
||||
Size_Medium = 1000
|
||||
};
|
||||
#endif // FLATBUFFERS_GENERATED_ENUMS_H_
|
||||
Reference in New Issue
Block a user