Mercurial
view gara/android/ndk/app/src/main/cpp/native-lib.cpp @ 49:2b11e0449042
[React Game] 2048 game.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 13 Dec 2025 14:24:20 -0800 |
| parents | 829623189a57 |
| children |
line wrap: on
line source
#include <jni.h> #include <string> extern "C" JNIEXPORT jstring JNICALL Java_com_example_android_bazel_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { std::string hello = "Hello from C++"; return env->NewStringUTF(hello.c_str()); }