google / jni-bind

JNI Bind is a set of advanced syntactic sugar for writing efficient correct JNI Code in C++17 (and up).
Apache License 2.0
261 stars 31 forks source link

Add helper macros that "export" JNIEXPORT and JNICALL. #186

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Add helper macros that "export" JNIEXPORT and JNICALL.

Unfortunately, duplicating a macro is very complicated (if not impossible). Instead of taking a non-portable appraoch, this allows for a fairly opt-in usage for an otherwise harmless error.