Skip to content
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

Support relative include directives in .fbs #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vaind
Copy link
Contributor

@vaind vaind commented Aug 26, 2021

closes #36

the important change is in the flatbuffersc.cpp - the remainder is just (for) tests

@vaind vaind requested a review from greenrobot-team August 26, 2021 10:52
Copy link
Member

@greenrobot-team greenrobot-team left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, as tests succeed assuming Parse does what it says.

if len(schemas) != 1 {
srcPath = filepath.Join(conf.Cmake.ConfDir, "*.fbs")
for name, content := range schemas {
// passing an empty name and content is a trick to having multiple schames to enable wildcard generation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// passing an empty name and content is a trick to having multiple schames to enable wildcard generation.
// passing an empty name and content is a trick to having multiple schemas to enable wildcard generation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe document this at function level so it's more obvious what adding an empty values map entry and no map entry does (not sure if here or at Generate)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cd into a file's dir to make includes work
2 participants