Re: sdl2 and ffi

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu