We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import std::time; def Picoev_loop_id_t = ushort; struct Picoev_loop { // read only Picoev_loop_id_t loop_id; struct timeout { short* vec; short* vec_of_vec; usz base_idx; time::Time base_time; int resolution; void* _free_addr; } time::Time now; } fn void picoev_set_timeout( picoev_loop* loop, // incorrect code // Picoev_loop* loop, // correct code int fd, int secs, ) @inline { return; }
I expected it to determine picoev_loop was not a valid type, but I got this error instead:
picoev_loop
Error: Expected ')'.
The text was updated successfully, but these errors were encountered:
That one is hard. picoev_loop will be understood to be a macro parameter name, so it could only be followed by =, , or )
=
,
)
Sorry, something went wrong.
Q: would a macro parameter be unexpected in a function parameter list? could that be an error itself?
It's usually resolved in semantic checking.
So essentially I don't know if there is a great way to resolve this.
No branches or pull requests
I expected it to determine
picoev_loop
was not a valid type, but I got this error instead:The text was updated successfully, but these errors were encountered: