/trunk/Examples/test-suite/anonymous_bitfield.i

# · Swig · 17 lines · 13 code · 4 blank · 0 comment · 0 complexity · adb6937108416e130550d4c2cc1c0fe9 MD5 · raw file

  1. %module anonymous_bitfield
  2. %inline %{
  3. struct Foo {
  4. int x : 4;
  5. int y : 4;
  6. int : 2;
  7. unsigned int f : 1;
  8. unsigned int : 5;
  9. int z : 15;
  10. unsigned int : 8+6;
  11. unsigned seq : (sizeof(unsigned)*8 - 6);
  12. };
  13. %}