LibCello: How are we supposed to pass stuff between functions?

1 points by tunify-basic 8 hours ago

hello so i felt frustrated tring to get this right and i think that it may reach someone who know how how to do it from here.

```c #include <stdio.h> #include <stdlib.h>

#include "inc/Cello.h"

struct fast_s { var string; var number; };

void initFast(struct fast_s fast) { fast->string = $S("Some string"); // $(String, ...) and new(String, ...) also will fails show(fast->string); // works as expected fast->number = new(Int, $I(4)); return; }

int main(int argc, char argp[]) { struct fast_s *fast = malloc(sizeof(struct fast_s)); initFast(fast); show(fast->string); // throws an error ValueError show(fast->number); free(fast); return 0; } ```