macro_rules! register_input_plugin {
($struct:ident, $($key:ident = $value:expr),* $(,)?) => { ... };
($struct:ident, $($key:ident),* $(,)?) => { ... };
($struct:ident) => { ... };
}Available on crate feature
input only.Expand description
入力プラグインを登録するマクロ。
§Example
# use aviutl2::register_input_plugin;
# struct MyInputPlugin;
# impl aviutl2::input::InputPlugin for MyInputPlugin {
# type InputHandle = ();
# fn new(info: aviutl2::common::AviUtl2Info) -> aviutl2::common::AnyResult<Self> {
# let _ = info;
# unimplemented!()
# }
# fn plugin_info(&self) -> aviutl2::input::InputPluginTable {
# unimplemented!()
# }
# fn open(&self, path: std::path::PathBuf) -> aviutl2::common::AnyResult<Self::InputHandle> {
# let _ = path;
# unimplemented!()
# }
# fn close(&self, handle: Self::InputHandle) -> aviutl2::common::AnyResult<()> {
# let _ = handle;
# unimplemented!()
# }
# }
aviutl2::register_input_plugin!(MyInputPlugin, unwind = false);§Arguments
unwind: panic時にunwindするかどうか。デフォルトはtrue。