risingwave_jni_core

Macro for_all_native_methods

source
macro_rules! for_all_native_methods {
    ($macro:path $(,$args:tt)*) => { ... };
    (
        {
            $({$func_name:ident, {$($ret:tt)*}, {$($args:tt)*}})*
        },
        $macro:path
        $(,$extra_args:tt)*
    ) => { ... };
    (
        {$($input:tt)*},
        $macro:path
        $(,$extra_args:tt)*
    ) => { ... };
}
Expand description

Pass the information of all native methods to the callback $macro. The input can be matched with pattern {$({$func_name:ident, {$($ret:tt)*}, {$($args:tt)*}})*}