PageRenderTime 29ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Swig | 30 lines | 21 code | 9 blank | 0 comment | 0 complexity | a0852cf9f9dc2377dacd4a315fdb9aeb MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module ordering
  2. // Ruby used to fail on the ordering of the two Class declarations below
  3. struct Klass {
  4. int variable;
  5. };
  6. %{
  7. struct Klass {
  8. int variable;
  9. };
  10. %}
  11. // Testing the order of various code block sections
  12. %runtime %{
  13. class RuntimeSection {};
  14. %}
  15. %header %{
  16. class HeaderSection {};
  17. void HeaderMethod(RuntimeSection rs) {}
  18. %}
  19. %wrapper %{
  20. void WrapperMethod(HeaderSection hs, RuntimeSection rs) {}
  21. %}