2

I am translating a big project from Java to objective-C. When there are primitive data types, they will be translated to JNI Types instead of objective-C data types, such as boolean -> jboolean.

However, it is written in the documentation that the mapping should be directly from boolean to BOOL.

What I expect is it could translate from boolean to BOOL directly. Is it possible?

1 Answer 1

2

A jboolean is typedef'd as a BOOL when referenced from an Objective-C source. The translator used to output BOOL directly, but switched to jboolean (as well as jchar, jint, etc.) so JNI sources can be built without modification.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot for your help and your work! It is a nice tool!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.