Make dynamic_cast.cpptest work
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12725 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2535e9ae2f
commit
b64c8e753e
2 changed files with 12 additions and 0 deletions
|
|
@ -176,3 +176,12 @@ return SWIG_OK; \
|
||||||
|
|
||||||
#define SwigScilabRaise(OBJ, TYPE, DESC) Scierror(999, "C++ side threw an exception of type %s.\n", TYPE)
|
#define SwigScilabRaise(OBJ, TYPE, DESC) Scierror(999, "C++ side threw an exception of type %s.\n", TYPE)
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
//%insert(init) "swiginit.swg"
|
||||||
|
%init %{
|
||||||
|
/* -----------------------------------------------------------------------------*
|
||||||
|
* Partial Init method
|
||||||
|
* -----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
SWIGEXPORT int SWIG_init(void) {
|
||||||
|
%}
|
||||||
|
|
@ -179,6 +179,9 @@ public:
|
||||||
Close(builderFile);
|
Close(builderFile);
|
||||||
Delete(builderFile);
|
Delete(builderFile);
|
||||||
|
|
||||||
|
/* Close the init function and quit (opened in sciruntime.swg) */
|
||||||
|
Printf(initSection, "return 0;\n}\n");
|
||||||
|
|
||||||
/* Write all to the wrapper file */
|
/* Write all to the wrapper file */
|
||||||
SwigType_emit_type_table(runtimeSection, wrappersSection); // Declare pointer types, ... (Ex: SWIGTYPE_p_p_double)
|
SwigType_emit_type_table(runtimeSection, wrappersSection); // Declare pointer types, ... (Ex: SWIGTYPE_p_p_double)
|
||||||
Dump(runtimeSection, beginSection);
|
Dump(runtimeSection, beginSection);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue