PageRenderTime 24ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
C++ | 22 lines | 15 code | 7 blank | 0 comment | 1 complexity | f617ebc812079394c8b1f8d18d7ca7dc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  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. }