The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | /// |
| 2 | /// t3highlightsOnLoad.hpp |
| 3 | /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. |
| 4 | /// https://github.com/mrousavy/nitro |
| 5 | /// Copyright © Marc Rousavy @ Margelo |
| 6 | /// |
| 7 | |
| 8 | #include <jni.h> |
| 9 | #include <functional> |
| 10 | #include <NitroModules/NitroDefines.hpp> |
| 11 | |
| 12 | namespace margelo::nitro::t3highlights { |
| 13 | |
| 14 | [[deprecated("Use registerNatives() instead.")]] |
| 15 | int initialize(JavaVM* vm); |
| 16 | |
| 17 | /** |
| 18 | * Register the native (C++) part of t3highlights, and autolinks all Hybrid Objects. |
| 19 | * Call this in your `JNI_OnLoad` function (probably inside `cpp-adapter.cpp`), |
| 20 | * inside a `facebook::jni::initialize(vm, ...)` call. |
| 21 | * Example: |
| 22 | * ```cpp (cpp-adapter.cpp) |
| 23 | * JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void*) { |
| 24 | * return facebook::jni::initialize(vm, []() { |
| 25 | * // register all t3highlights HybridObjects |
| 26 | * margelo::nitro::t3highlights::registerNatives(); |
| 27 | * // any other custom registrations go here. |
| 28 | * }); |
| 29 | * } |
| 30 | * ``` |
| 31 | */ |
| 32 | void registerAllNatives(); |
| 33 | |
| 34 | } // namespace margelo::nitro::t3highlights |