ohai / ruby-sdl2

A Ruby wrapper for SDL 2.x
GNU Lesser General Public License v3.0
71 stars 16 forks source link

Expose flags that are part of an enum correctly #20

Closed win93 closed 4 years ago

win93 commented 4 years ago

Some flag symbols I wanted to use exist in my platforms SDL2 headers, but weren't being added to the ruby Flags modules. This change uses extconf.rb to check for symbols instead of using the C preprocessor for this task, The preprocessor check does not find these symbols because they a C symbols, not preprocessor symbols.

These are part of the SDL_RendererFlags or SDL_WindowFlags enum as specified in https://wiki.libsdl.org/SDL_RendererFlags https://wiki.libsdl.org/SDL_WindowFlags

ohai commented 4 years ago

It looks good. Thank you for your contribution.