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

Assign variable from Python wrapper #8

Open
lynnporu opened this issue Dec 26, 2021 · 0 comments
Open

Assign variable from Python wrapper #8

lynnporu opened this issue Dec 26, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@lynnporu
Copy link
Owner

lynnporu commented Dec 26, 2021

The following action needs to be possible:

print(lib.SOME_VARIABLE)  # undefined behaviour
lib.SOME_VARIABLE = 5
print(lib.SOME_VARIABLE)  # prints "5"

Where SOME_VARIABLE is the global variable defined in the dynamic library:

/* @variable SOME_VARIABLE
 * @type int
 */
int SOME_VARIABLE = 0;

The same behavior should be possible for globally defined structs.

@lynnporu lynnporu added the enhancement New feature or request label Dec 26, 2021
@lynnporu lynnporu added this to the 1.1 release milestone Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant