Skip to content

Commit

Permalink
Merge pull request #113 from jwillemsen/jwi-idl4union
Browse files Browse the repository at this point in the history
IDL4 union extension (octet/wchar as discriminator type)
  • Loading branch information
jwillemsen authored Jul 17, 2023
2 parents 5601ef1 + c1b6843 commit 3017364
Show file tree
Hide file tree
Showing 3 changed files with 724 additions and 707 deletions.
1 change: 1 addition & 0 deletions lib/ridl/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2722,6 +2722,7 @@ def has_default?

def default_label
swtype = @switchtype.resolved_type
return nil if IDL::Type::WChar === swtype # No default label detection for wchar
lbls = members.collect { |m| m.labels.include?(:default) ? [] : m.labels.collect { |l| l.value } }.flatten
lbls = lbls.sort unless IDL::Type::Boolean === swtype ## work around bug in Ruby 1.9.2
def_lbl = swtype.min
Expand Down
Loading

0 comments on commit 3017364

Please sign in to comment.