Skip to content

Instantly share code, notes, and snippets.

@amwatson
Created June 24, 2014 19:38
Show Gist options
  • Save amwatson/0d7592b066cb3d867a99 to your computer and use it in GitHub Desktop.
Save amwatson/0d7592b066cb3d867a99 to your computer and use it in GitHub Desktop.
Compiler error?
Moroso code:
let tcb = thr_create(null, null, 0);
C output:
struct tcb* tcb = (tcb *)thr_create(NULL, NULL, 0);
gcc error:
error: expected expression before ‘)’ token
[problem does not exist when '(tcb *)' is removed]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment