Use comptime for fully declarative LV2 and Custom commands #14
1 changed files with 1 additions and 2 deletions
|
@ -422,8 +422,7 @@ pub const Image = struct {
|
||||||
self: *Image,
|
self: *Image,
|
||||||
comptime Plugin: type,
|
comptime Plugin: type,
|
||||||
position: plugins.Position,
|
position: plugins.Position,
|
||||||
comptime ExtraType: type,
|
extra: *ParamMap,
|
||||||
extra: ExtraType,
|
|
||||||
) !void {
|
) !void {
|
||||||
var plugin_opt: ?Plugin = Plugin.init(self.allocator, extra);
|
var plugin_opt: ?Plugin = Plugin.init(self.allocator, extra);
|
||||||
if (plugin_opt == null) {
|
if (plugin_opt == null) {
|
||||||
|
|
Loading…
Reference in a new issue