XS.xsp 455 B

123456789101112131415161718192021222324252627282930313233
  1. %module{Slic3r::XS};
  2. %package{Slic3r::XS};
  3. #include <xsinit.h>
  4. %{
  5. %}
  6. %package{Slic3r};
  7. %{
  8. SV*
  9. VERSION()
  10. CODE:
  11. RETVAL = newSVpv(SLIC3R_VERSION, 0);
  12. OUTPUT: RETVAL
  13. SV*
  14. GITVERSION()
  15. CODE:
  16. RETVAL = newSVpv(SLIC3R_GIT, 0);
  17. OUTPUT: RETVAL
  18. void
  19. xspp_test_croak_hangs_on_strawberry()
  20. CODE:
  21. try {
  22. throw 1;
  23. } catch (...) {
  24. croak("xspp_test_croak_hangs_on_strawberry: exception catched\n");
  25. }
  26. %}