dynamic code generation

Issue #122 new
Prostetnic Jeltz created an issue

When a block contains more than one function as described at #69 dynamic code generation seems to assume, that the first function is the "main"-function.

Regardless of tags like type="init" or type="custom", the first function gets called once every sample at audio-/control-rate with the blocks data as argument.

Functions are generated inline. If an inline-function is declared after some code uses it, it creates "static declaration follows non-static declaration errors" and won't compile.

Dynamic code generation should assume, that the first function without type="custom" or type="init" is the "main"-function. Functions with declared types should be placed before all blocks "main"-functions. This would allow to use custom functions in "main"-functions (which is currently not possible) and avoid compilation errors.

Comments (1)

  1. Log in to comment