Skip to content

How do I handle such a replacement macro using for default values of some parameters? #563

Answered by saudet
lancewoo asked this question in Q&A
Discussion options

You must be logged in to vote

We shouldn't need to do anything special for default arguments, they get mostly ignored by default, but if you want to redefine a macro, what we need to do is shown on this page: https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#redefining-the-code-of-a-macro

Specifically in this case:

infoMap.put(new Info("DEFAULT").cppText("#define DEFAULT(x)"));

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@lancewoo
Comment options

@lancewoo
Comment options

@lancewoo
Comment options

Answer selected by lancewoo
Comment options

You must be logged in to vote
1 reply
@saudet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants