-
-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library support for flatbuffers #2252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we include just monster.fbs
and have the sample compile it?
-#if defined(ARDUINO) && !defined(ARDUINOSTL_M_H) | ||
- #include <utility.h> | ||
-#else | ||
+//#if defined(ARDUINO) && !defined(ARDUINOSTL_M_H) | ||
+// #include <utility.h> | ||
+//#else | ||
#include <utility> | ||
-#endif | ||
+//#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove instead of comment-out ?
builder.Finish(orc); // You could also call `FinishMonsterBuffer(builder, | ||
// orc);`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to split comment
|
||
#include <flatbuffers/flatbuffers> | ||
|
||
Or directly the header file generated from the `flatc` compiler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...Or directly use the header...
@@ -0,0 +1,2 @@ | |||
COMPONENT_INCDIRS := src/include | |||
COMPONENT_SUBMODULES := src |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline at end of file?
} | ||
|
||
|
||
Furher reading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Further
Compatible with all architectures using modern compilers.