crystal-lang / crystal_lib

Automatic binding generator for native libraries in Crystal
138 stars 30 forks source link

Fix: broken binding generation when unexposed enum in struct field #67

Open olbat opened 4 years ago

olbat commented 4 years ago

Fixes #66

RX14 commented 4 years ago

What code does this generate for the example in #66?

olbat commented 4 years ago

Here is the code that's generated with the patch:

lib LibTest
  fun  = test : St*
  struct St
    a : LibC::Int
    b : StB
  end
  enum StB
    X = 0
    Y = 1
  end
end
olbat commented 4 years ago

Hey 👋 Can we consider to merge this fix now it's approved?