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

Comment with first dimension of multidimensional array inside @Cast #87

Merged
merged 2 commits into from
Mar 13, 2016

Conversation

osialr
Copy link
Contributor

@osialr osialr commented Mar 11, 2016

It's handy to see all dimensions of the input array even thought the cast needs to be (*).

This will generate code such as @Cast("const double(*"+/*[4]*/")[2]") DoubleBuffer quad

@saudet
Copy link
Member

saudet commented Mar 12, 2016

Good idea! We could even place them in C++ comments to make this more readable:

@Cast("const double(*/*[4]*/)[2]") DoubleBuffer quad`

Or are Java comments better?

@osialr
Copy link
Contributor Author

osialr commented Mar 12, 2016

Looking at them side-by-side, I prefer your method. Then the .cpp will include the size as well and the unbalanced + goes away.

I would put spaces in so it's easier to mentally parse.

@Cast("const double(* /*[4]*/ )[2]") DoubleBuffer quad

saudet added a commit that referenced this pull request Mar 13, 2016
 * Comment with first dimension of multidimensional array inside `@Cast`
@saudet saudet merged commit 27be9c9 into bytedeco:master Mar 13, 2016
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