summaryrefslogtreecommitdiff
path: root/src/idl_gen_php.cpp
diff options
context:
space:
mode:
authorMikkelFJ <mikkelfj@gmail.com>2017-08-02 17:07:43 +0200
committerWouter van Oortmerssen <aardappel@gmail.com>2017-08-02 08:07:43 -0700
commitf2b3705c2c62c40afdef96f73f0aeaf32b4c8e0e (patch)
tree902047865c3083071d81a01f41361fd67867a29f /src/idl_gen_php.cpp
parent3282a84e3068d2ff0ded5a683ceea0806da21ed6 (diff)
downloadflatbuffers-f2b3705c2c62c40afdef96f73f0aeaf32b4c8e0e.tar.gz
flatbuffers-f2b3705c2c62c40afdef96f73f0aeaf32b4c8e0e.tar.bz2
flatbuffers-f2b3705c2c62c40afdef96f73f0aeaf32b4c8e0e.zip
Add scalar type aliases for int8, uint8, ..., f32, f64 (#4400)
* Add type aliases * Add generated code * Rebase master
Diffstat (limited to 'src/idl_gen_php.cpp')
-rw-r--r--src/idl_gen_php.cpp3
1 files changed, 2 insertions, 1 deletions
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