sciruntime.swg 633 B

123456789101112131415161718192021222324252627282930313233
  1. %insert(runtime) "swigrun.swg";
  2. %insert(runtime) "swigerrors.swg";
  3. #define %scilabcode %insert("scilab")
  4. %insert(runtime) "scirun.swg";
  5. %init %{
  6. #define SWIG_GetModule(clientdata) SWIG_Scilab_GetModule()
  7. #define SWIG_SetModule(clientdata, pointer) SWIG_Scilab_SetModule(pointer)
  8. SWIGRUNTIME swig_module_info*
  9. SWIG_Scilab_GetModule(void)
  10. {
  11. return NULL;
  12. }
  13. SWIGRUNTIME void
  14. SWIG_Scilab_SetModule(swig_module_info *swig_module)
  15. {
  16. }
  17. %}
  18. %insert(init) "swiginit.swg"
  19. %init %{
  20. #ifdef __cplusplus
  21. extern "C"
  22. #endif
  23. int <module>_Init(SWIG_GatewayParameters) {
  24. SWIG_InitializeModule(NULL);
  25. SWIG_CreateScilabVariables(pvApiCtx);
  26. %}