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
local ffi = jit and require('ffi') or require('cffi') ffi.cdef[[ typedef struct point { int x; int y; } point_t; ]] print(ffi.typeof("point_t")) --> ctype<struct point> print(ffi.typeof("point_t *")) --> ctype<struct point *> print(ffi.typeof("$ *", ffi.typeof("point_t"))) --> expected: ctype<struct point *>, get: ctype<struct point>
I'm expecting a pointer type for the parametrized typeof ffi.typeof("$ *", ffi.typeof("point_t"), but am getting the underlying structure type.
ffi.typeof("$ *", ffi.typeof("point_t")
Running off of 07b30b0.
The text was updated successfully, but these errors were encountered:
f8fbd26
add testcase for #6
be5074c
this one was kind of silly, the parsing and everything was actually working right, but it was returning an incorrect value on the lua stack :P
Sorry, something went wrong.
Great, thanks 👍 Works for me now.
No branches or pull requests
I'm expecting a pointer type for the parametrized typeof
ffi.typeof("$ *", ffi.typeof("point_t")
, but am getting the underlying structure type.Running off of 07b30b0.
The text was updated successfully, but these errors were encountered: