Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2010 19:23
Show Gist options
  • Save anonymous/469908 to your computer and use it in GitHub Desktop.
Save anonymous/469908 to your computer and use it in GitHub Desktop.
Arguments: cover {
val1: String
val2: Int
init: func@(=val1, =val2){}
}
args := gc_malloc(Arguments size) as Arguments*
args init("val1", 42)
rock_tmp/./ffitest.c:84:29: error: used type 'ffitest__Arguments' (aka 'struct _ffitest__Arguments') where arithmetic or pointer type is required
ffitest__Arguments_init((ffitest__Arguments) &(args), "val1", 42);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment