Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/android/ndk-samples
/ Add
Function
Add
unit-test/app/src/main/cpp/native-lib.cpp:6–6 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4
#include
"adder.h"
5
6
jint Add(JNIEnv*, jobject, jint a, jint b) { return add((int)a, (int)b); }
7
8
extern
"C"
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* _Nonnull vm,
9
void* _Nullable) {
Callers
nothing calls this directly
Calls
1
add
Function · 0.85
Tested by
no test coverage detected