java/Ref: add LocalRef::GetEnv()
This commit is contained in:
@@ -63,6 +63,10 @@ namespace Java {
|
|||||||
LocalRef(const LocalRef &other) = delete;
|
LocalRef(const LocalRef &other) = delete;
|
||||||
LocalRef &operator=(const LocalRef &other) = delete;
|
LocalRef &operator=(const LocalRef &other) = delete;
|
||||||
|
|
||||||
|
JNIEnv *GetEnv() const noexcept {
|
||||||
|
return env;
|
||||||
|
}
|
||||||
|
|
||||||
T Get() const noexcept {
|
T Get() const noexcept {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user