Skip to content

How can I tell JavaCPP to ignore this macro? #550

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

You must be logged in to vote

We can redefine macros as explained here:
https://github.com/bytedeco/javacpp/wiki/Mapping-Recipes#redefining-the-code-of-a-macro
In this case, something like this should work:

infoMap.put(new Info("DEFINE_STANDARD_ALLOC").cppText("#define DEFINE_STANDARD_ALLOC void somename(){}"));

Replies: 1 comment 3 replies

Comment options

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

@saudet
Comment options

@nyholku
Comment options

Answer selected by saudet
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