Skip to content

Instantly share code, notes, and snippets.

@IFeelBloated
Created June 4, 2021 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IFeelBloated/4b49c340bf5ba960ce3e628e5166d7e1 to your computer and use it in GitHub Desktop.
Save IFeelBloated/4b49c340bf5ba960ce3e628e5166d7e1 to your computer and use it in GitHub Desktop.
#include "PluginInstantiator.vxx"
auto Main() {
auto Configurations = PluginInfo{
.Namespace = "test",
.Identifier = "com.dontcare.test",
.Description = "whatever"
};
PluginInstantiator::Initialize(Configurations);
PluginInstantiator::RegisterFunction("Test(clip: vnode)", [](auto Arguments, auto Core) {
auto Clip = static_cast<Node>(Arguments["clip"]);
Core.Print(Clip[0]);
return static_cast<std::string>(Clip[0]);
});
}
InstantiatePluginFrom(Main);
@IFeelBloated
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment