-
-
Notifications
You must be signed in to change notification settings - Fork 188
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 for Initialization Outside of Main #433
Comments
I found issue #293. This gives a great start, but I'm not sure how to do this within a helper function? The OP of that issue has an unresolved question on how to provide the return type. I've been struggling with trying to wrap my head on how to get the references in and out of a call to the function. I'm a C# dev so grasping how pointers and references work in this situation such that anything created locally in the function isn't destroyed is killing me. |
not sure if this helps, if dealing with value fields, they are hooked to your variables, so the values are already on the variables... |
I'm trying to get this library set-up so that I can initialize a rather complex menu structure in a separate file. How can I do this? It doesn't seem possible that I can return nav:
MenuConfig.cpp
main.cpp
I've tried several ways, like passing references, etc. The program seems to crash in the loop.
Is there a way to do this or do am I forced to have a gigantic
main.cpp
file?!The text was updated successfully, but these errors were encountered: