droid_wrap_utils

Macro vm_attach

Source
macro_rules! vm_attach {
    (mut $var:ident) => { ... };
    (_ $var:ident) => { ... };
}
Expand description

获取vm,将vm附加到当前线程,随后操作java虚拟机。

§Examples

use droid_wrap_utils::vm_attach;
vm_attach!(_ env);
// or: vm_attach!(mut env);
let class = env.find_class("java/lang/String");
dbg!(class);