PageRenderTime 42ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1.3.35/Examples/test-suite/inctest.i

#
Swig | 35 lines | 28 code | 7 blank | 0 comment | 0 complexity | 9895c3bab3db0a0753cb1fe6d7e2f111 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. %module inctest
  2. //
  3. // This test fails if swig is not able to include
  4. // the following two files:
  5. //
  6. // 'testdir/subdir1/hello.i'
  7. // 'testdir/subdir2/hello.i'
  8. //
  9. // since they have the same basename 'hello', swig is only
  10. // including one. This is not right, it must include both,
  11. // as the well known compilers do.
  12. //
  13. // Also repeats the test for the import directive in subdirectories
  14. %include "testdir/test.i"
  15. // Bug #1162194
  16. %inline %{
  17. typedef struct {
  18. #include "inctest.h"
  19. } MY_TYPES;
  20. %}
  21. %{
  22. typedef struct {
  23. #include "inctest.h"
  24. } MY_THINGS;
  25. %}
  26. typedef struct {
  27. %include "inctest.h"
  28. } MY_THINGS;