Re: sdl2 and ffi
- Posted by SDPringle Nov 16, 2022
- 2728 views
You guys are making cool stuff! The data structures that must exist could open the door to making validating data as well.
-- you could write a function like this: is_struct(RECT, x) -- returns true iff x has four members and each member falls within the range of the respective c types type rect(object x) return is_struct(RECT, x) end type