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

pySimpleStateVariable IsUsed Binding #234

Merged
merged 1 commit into from
Dec 26, 2012
Merged

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Dec 16, 2012

This lets python scripts determine if variables in SDL blobs are used (at the default).

H-uru/moul-scripts#42 depends on this PR.

This lets python scripts determine if variables in SDL blobs are used (at
the default).
@@ -264,6 +264,11 @@ void pySDLStateDataRecord::AddPlasmaClasses(PyObject *m)
PYTHON_RETURN_BOOL(self->fThis->IsInternal());
}

PYTHON_METHOD_DEFINITION_NOARGS(ptSimpleStateVariable, isUsed)
{
PYTHON_RETURN_BOOL(self->fThis->IsUsed());
Copy link
Member

Choose a reason for hiding this comment

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

sigh this python crap needs a total rewrite. Lines like this make me sad.

Copy link
Member Author

Choose a reason for hiding this comment

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

Be my guest....

branan pushed a commit that referenced this pull request Dec 26, 2012
pySimpleStateVariable IsUsed Binding
@branan branan merged commit cac3968 into H-uru:master Dec 26, 2012
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.

None yet

2 participants