Skip to content

Commit 3b79f94

Browse files
committed
jni: rename a function to clarify what it does
1 parent d8f9145 commit 3b79f94

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/modules/out_jnibuf.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static jfieldID jf_maty;
4444
static int matx;
4545
static int maty;
4646

47-
void ignoreException() {
47+
void print_any_exceptions() {
4848
if (JniEnv->ExceptionCheck(pJniEnv)) {
4949
// this doesn't actually output anything??
5050
JniEnv->ExceptionDescribe(pJniEnv);
@@ -56,8 +56,7 @@ void swapBuffers() {
5656
currentBuffer = NEXTBUFFER;
5757
JniEnv->CallVoidMethodA(pJniEnv, jo_jni_sled, jm_setCurrentBuffer, (jvalue *) &buffers[currentBuffer]);
5858

59-
// warnings constantly show up with -Xcheck:jni, I have no idea why
60-
ignoreException();
59+
print_any_exceptions();
6160
}
6261

6362
inline unsigned int rgb2uint(RGB color) {

0 commit comments

Comments
 (0)