You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use cstring in all procs (the ones with string are probably broken) but export a string version for all variables that are cstring (such as key, so that we do not need to convert it)
use enums for all the cstring constants? not sure if it helps that much... when porting it is useful to have the same syntax that you find in p5js.
...
The text was updated successfully, but these errors were encountered:
we could definitely improve bindings with some higher level stuff:
setup:
,draw:
that avoid the need to write the {.exportc.} pragmaPNumber
converter toFloat(n: int): float = float(n)
+ exporting lenientops +PNumber = float
cstring
in all procs (the ones withstring
are probably broken) but export astring
version for all variables that arecstring
(such askey
, so that we do not need to convert it)enum
s for all thecstring
constants? not sure if it helps that much... when porting it is useful to have the same syntax that you find in p5js.The text was updated successfully, but these errors were encountered: