XS.xsp 367 B

123456789101112131415161718192021222324252627
  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. void
  14. xspp_test_croak_hangs_on_strawberry()
  15. CODE:
  16. try {
  17. throw 1;
  18. } catch (...) {
  19. croak("xspp_test_croak_hangs_on_strawberry: exception catched\n");
  20. }
  21. %}