getLuaArch() (hell)

This commit is contained in:
2026-05-28 21:52:10 -03:00
parent a80b3f1ebe
commit cca07e5557
13 changed files with 4012 additions and 2 deletions

View File

@@ -9,7 +9,13 @@ public final class nn_Architecture extends PointerBackedClass implements Manuall
public nn_Architecture(String name, Function<String, Integer> handler) { // string is a placeholder; please fix
this.name = name;
this.handler = handler;
}
private nn_Architecture(String name) { // this overload is used by JNI when returning instances of native nn_Architecture(s)
this.name = name;
this.handler = (String tmp) -> {
// maybe in the future we can let this happen idk
throw new IllegalCallerException("Calling native architecture handlers from Java is not allowed!");
};
}
private int handleNative() { // i aint gonna be trying to call that Function from jni man
@@ -18,4 +24,5 @@ public final class nn_Architecture extends PointerBackedClass implements Manuall
public native boolean allocate();
public native boolean free();
}