/trunk/Examples/test-suite/chicken/ext_test_external.cxx

# · C++ · 22 lines · 15 code · 7 blank · 0 comment · 1 complexity · f617ebc812079394c8b1f8d18d7ca7dc MD5 · raw file

  1. #include <ext_test_wrap_hdr.h>
  2. #include <imports_a.h>
  3. void test_create(C_word,C_word,C_word) C_noret;
  4. void test_create(C_word argc, C_word closure, C_word continuation) {
  5. C_word resultobj;
  6. swig_type_info *type;
  7. A *newobj;
  8. C_word *known_space = C_alloc(C_SIZEOF_SWIG_POINTER);
  9. C_trace("test-create");
  10. if (argc!=2) C_bad_argc(argc,2);
  11. newobj = new A();
  12. type = SWIG_TypeQuery("A *");
  13. resultobj = SWIG_NewPointerObj(newobj, type, 1);
  14. C_kontinue(continuation, resultobj);
  15. }