Newbie here who came across crystal just few days back. Actually I am trying to use the ioctl shard to run a user app to control a LKM driver. While I am able to make it work fine, I face an issue where I had to pass the pointer size (worked it around by passing Int64 with the ioctl C binding instead of pointer type). In abstract following is the issue below, this macro has to return the size of pointer type but I get unterminated call error. This may be a trivial issue (pardon me). How can I get the size of pointer type via macro? This is Crystal version 1.0.0, Debian Linux x86_64
macro m(t)
sizeof({{ t }})
end
print sizeof(Int32*) # prints 8
print m(Int32) # prints 4
print m(Int32*) # ERROR unterminated call