Skip to content

Commit

Permalink
README tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Mar 3, 2016
1 parent 5d56609 commit 1757f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Use the helper function `jni::MakeNativeMethod` to construct method arguments fo
jni::MakeNativeMethod<decltype(myFunction), myFunction>(name, signature)
```

The `decltype` is necessary because it is not possible to infer the types from a non-type template parameter. You may wish to use a macro to avoid repetition. See below for example code.
The repetition of `myFunction` with `decltype` is necessary because it is not possible to infer the function type from the non-type template parameter. You may wish to define and use a macro to avoid the repetition.
* A `const char *` name and lamba whose parameter and return types use high-level jni.hpp wrapper types. In this case, jni.hpp will compute the signature automatically.
* A `const char *` name and function pointer whose parameter and return types use high-level jni.hpp wrapper types. Again, jni.hpp will compute the signature automatically, and again, the function pointer must be provided as a template parameter rather than method parameter.

Expand All @@ -82,8 +82,8 @@ Finally, jni.hpp provides a mechanism for registering a "native peer": a long-li

Example code for both the low-level and high-level wrappers is provided in [the `examples` subdirectory](https://github.com/mapbox/jni.hpp/tree/master/examples). This code shows the use of jni.hpp for:

* Binding native methods such that they can be called from Java.
* Calling back into Java methods from native code.
* Registering native methods such that they can be called from Java.
* Calling back into Java methods from native methods.
* Native peer registration.

## Prior art
Expand Down

0 comments on commit 1757f7c

Please sign in to comment.