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

C++ model generator #403

Draft
wants to merge 45 commits into
base: main
Choose a base branch
from
Draft

C++ model generator #403

wants to merge 45 commits into from

Conversation

dhower-qc
Copy link
Collaborator

No description provided.

dhower-qc and others added 27 commits December 12, 2024 13:13
Signed-off-by: Luke Quinn <[email protected]>
Signed-off-by: Luke Quinn <[email protected]>
Signed-off-by: Derek Hower <[email protected]>
Signed-off-by: Luke Quinn <[email protected]>
@@ -301,6 +301,8 @@ def gen_cpp(symtab, indent = 0, indent_spaces: 2)
else
"#{' ' * indent}__UDB_MUTABLE_GLOBAL(#{text_value})"
end
elsif text_value == "imm"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually, this special case is going to apply to all decode variables.

so, we want something like:

elsif !var.nil? && var.decode_var?
  "#{' ' * indent}#{text_value}()"

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.

2 participants