Hans-Christoph Steiner wrote:
I was trying to figure out how this is done in [expr], but that code is super strange, so no luck yet. Anyone else have examples of dynamically creating inlets in C based on object arguments?
pdlua does this, the relevant functions in pdlua/src/lua.c are:
// the lua constructor calls this with object pointer and inlet count pdlua_object_createinlets(); // this initializes a proxy inlet pdlua_proxyinlet_init();
Source browseable here:
https://devel.goto10.org/filedetails.php?repname=maximus&path=%2Fpdlua%2...