-
Notifications
You must be signed in to change notification settings - Fork 3.4k
-
Hey folks. You may or may not know that I've been attempting to maintain a flatbuffers syntax highlighting plugin for IntelliJ IDEs. https://github.com/stefansjs/flatbuffers-intellij-plugin. I recent had an issue filed (stefansjs/flatbuffers-intellij-plugin#27) that I don't support the native_* directives. I went to look for the documentation and examples, but the examples are hard to follow because they show what the generated code looks like and not how to use them.
Can you add a "how to use" oriented documentation section the native_* documentation?
Here's my best guess
namespace Geometry;
attribute force_align;
struct Vector3D (native_type:"Native::Vector3D", force_align)
{
// according to the flatbuffers parser implementation, native_inline and native_default are only relevant to a struct
x:float (native_inline, native_default:10);
y:float;
z:float;
}
// Howerver, a custom allocator may be applied to a struct or a table, esp to allocate native struct types
table ApplicationData(native_custom_alloc:"custom_allocator") {
vectors:[Vector3D];
}
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment