Skip to content

Commit

Permalink
jni: Enable size optimizations on C side
Browse files Browse the repository at this point in the history
  • Loading branch information
LekKit authored Mar 4, 2024
1 parent b0b5b28 commit f2148fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bindings/jni/rvvm_jni.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "tiny-jni.h"
#include "compiler.h"
#include "utils.h"
#include "rvvmlib.h"
#include "devices/clint.h"
Expand All @@ -14,6 +15,8 @@
#include "devices/framebuffer.h"
#include "devices/hid_api.h"

PUSH_OPTIMIZATION_SIZE

JNIEXPORT jint JNICALL Java_lekkit_rvvm_RVVMNative_get_1abi_1version(JNIEnv* env, jclass class)
{
UNUSED(env); UNUSED(class);
Expand Down Expand Up @@ -326,3 +329,5 @@ JNIEXPORT void JNICALL Java_lekkit_rvvm_RVVMNative_hid_1keyboard_1release(JNIEnv
UNUSED(env); UNUSED(class);
hid_keyboard_release((hid_keyboard_t*)(size_t)kb, key);
}

POP_OPTIMIZATION_SIZE

0 comments on commit f2148fc

Please sign in to comment.