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

pass C++ variables into Cling #4

Open
blockspacer opened this issue Sep 16, 2019 · 0 comments
Open

pass C++ variables into Cling #4

blockspacer opened this issue Sep 16, 2019 · 0 comments

Comments

@blockspacer
Copy link

If you want to use cling, maybe following will be useful:
https://github.com/blockspacer/CXXCTP/blob/master/src/template_engine/engine_main.cpp#L20

Note argRefToCling function, it allows to pass C++ variables into Cling (or maybe it is possible to do it easier).

// Or use macro / codegen
#define ARG_REF_TO_CLING(varType, varName) argRefToCling(varType, #varName, (varName))

Also note that usage example is reflection/codegen engine ( https://github.com/blockspacer/CXXCTP ), may be useful for game engine/level editor/e.t.c.

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

No branches or pull requests

1 participant