There is a function glfwCreateWindow. The last two arguments of this function are of type _pointer. How to properly import and annotate this function in typed/racket?
What an #:opaque type means is that the only ways to construct it are to import it or to test a value with the specified predicate. So you can do something like this:
All of three suggestions fixed compilation, but there is still a run-time warning:
cpointer?: contract violation
any-wrap/c: Unable to protect opaque value passed as `Any`
value: #<cpointer>
This warning will become an error in a future release.
in: the 1st argument of
a part of the or/c of
(or/c
struct-predicate-procedure?/c
(-> Any boolean?))
contract from: (interface for cpointer?)