From f2b3705c2c62c40afdef96f73f0aeaf32b4c8e0e Mon Sep 17 00:00:00 2001 From: MikkelFJ Date: Wed, 2 Aug 2017 17:07:43 +0200 Subject: Add scalar type aliases for int8, uint8, ..., f32, f64 (#4400) * Add type aliases * Add generated code * Rebase master --- src/idl_gen_php.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/idl_gen_php.cpp') diff --git a/src/idl_gen_php.cpp b/src/idl_gen_php.cpp index 7266551f..8021f92f 100644 --- a/src/idl_gen_php.cpp +++ b/src/idl_gen_php.cpp @@ -879,7 +879,8 @@ namespace php { 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) \ #NTYPE, FLATBUFFERS_GEN_TYPES(FLATBUFFERS_TD) #undef FLATBUFFERS_TD -- cgit v1.2.3