mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 11:11:37 +00:00
Emit include for bfbs-gen-embed (#7031)
This commit is contained in:
@@ -283,6 +283,9 @@ class CppGenerator : public BaseGenerator {
|
|||||||
code_ += "#pragma clang system_header\n\n";
|
code_ += "#pragma clang system_header\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code_ += "#include \"flatbuffers/flatbuffers.h\"";
|
||||||
|
code_ += "";
|
||||||
|
|
||||||
SetNameSpace(struct_def.defined_namespace);
|
SetNameSpace(struct_def.defined_namespace);
|
||||||
auto name = Name(struct_def);
|
auto name = Name(struct_def);
|
||||||
code_.SetValue("STRUCT_NAME", name);
|
code_.SetValue("STRUCT_NAME", name);
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
#ifndef FLATBUFFERS_GENERATED_MONSTERTEST_MYGAME_EXAMPLE_BFBS_H_
|
#ifndef FLATBUFFERS_GENERATED_MONSTERTEST_MYGAME_EXAMPLE_BFBS_H_
|
||||||
#define FLATBUFFERS_GENERATED_MONSTERTEST_MYGAME_EXAMPLE_BFBS_H_
|
#define FLATBUFFERS_GENERATED_MONSTERTEST_MYGAME_EXAMPLE_BFBS_H_
|
||||||
|
|
||||||
|
#include "flatbuffers/flatbuffers.h"
|
||||||
|
|
||||||
namespace MyGame {
|
namespace MyGame {
|
||||||
namespace Example {
|
namespace Example {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user