mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-05 11:47:47 +00:00
Add scalar type aliases for int8, uint8, ..., f32, f64 (#4400)
* Add type aliases * Add generated code * Rebase master
This commit is contained in:
parent
3282a84e30
commit
f2b3705c2c
21 changed files with 2461 additions and 65 deletions
|
|
@ -580,7 +580,8 @@ static std::string GenMethod(const FieldDef &field) {
|
|||
|
||||
static std::string GenTypeBasic(const Type &type) {
|
||||
static const char *ctypename[] = {
|
||||
#define FLATBUFFERS_TD(ENUM, IDLTYPE, CTYPE, JTYPE, GTYPE, NTYPE, PTYPE) \
|
||||
#define FLATBUFFERS_TD(ENUM, IDLTYPE, ALIASTYPE, \
|
||||
CTYPE, JTYPE, GTYPE, NTYPE, PTYPE) \
|
||||
#PTYPE,
|
||||
FLATBUFFERS_GEN_TYPES(FLATBUFFERS_TD)
|
||||
#undef FLATBUFFERS_TD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue