getLuaArch() (hell)
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user