Skip to content

gencffi: Support bool types. #111

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

Merged
merged 1 commit into from
Jun 27, 2017
Merged

gencffi: Support bool types. #111

merged 1 commit into from
Jun 27, 2017

Conversation

corona10
Copy link
Collaborator

gencffi: Support bool types.

@corona10
Copy link
Collaborator Author

@sbinet PTAL

@@ -12,3 +12,10 @@ func Func() {}
func Add(i, j int) int {
return i + j
}

func Bool(b bool) bool {
Copy link
Member

Choose a reason for hiding this comment

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

it's a bit of a confusing test function.
why not just:

func Bool(b bool) bool {
   return b
}

or perhaps:

func Equal(a, b int) bool {
   return a == b
}

(or did you want to also test booleans as arguments of functions? in that case I would stick with my former Bool() function)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

or did you want to also test booleans as arguments of functions?

Yeah, That's what I intended to do.

@corona10
Copy link
Collaborator Author

Updated!

Copy link
Member

@sbinet sbinet left a comment

Choose a reason for hiding this comment

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

LGTM

@sbinet sbinet merged commit fddd338 into go-python:master Jun 27, 2017
@corona10 corona10 deleted the booltype branch June 27, 2017 14:21
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