Skip to content

Commit

Permalink
Merge pull request #236 from mcorino/develop
Browse files Browse the repository at this point in the history
add nested enum(erator) resolving support
  • Loading branch information
mcorino committed Jan 7, 2024
2 parents c27bcbe + 8bae8c0 commit aeffec8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wx/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
::Wx.include(WxRubyStyleAccessors)

::Wx.include((defined?(::WX_GLOBAL_CONSTANTS) && ::WX_GLOBAL_CONSTANTS) ? WxGlobalConstants : WxEnumConstants)
# Provide support for finding enumerator constants for nested enums in Wx::Object derived classes without
# full scoping. This does not cover non Wx::Object derived classes with nested enums in the Wx hierarchy
# but there should not be too many of those.
::Wx::Object.include(WxEnumConstants)

# Load in syntax sweeteners
require 'wx/keyword_defs'
Expand Down

0 comments on commit aeffec8

Please sign in to comment.