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

# · Swig · 15 lines · 13 code · 2 blank · 0 comment · 0 complexity · 9ca3018a0306127e6b1428dab7e10c1c MD5 · raw file

  1. %module restrict_cplusplus
  2. %{
  3. // For PHP 5.3 / gcc-4.4
  4. #ifdef restrict
  5. #undef restrict
  6. #endif
  7. struct Foo {
  8. int restrict;
  9. };
  10. %}
  11. struct Foo {
  12. int restrict;
  13. };