Add SWIG_DIRECTOR_CAST recently added to languages needing it
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11989 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fc3873befc
commit
f9caea4b29
4 changed files with 10 additions and 4 deletions
|
|
@ -10,6 +10,8 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
|
||||||
|
|
||||||
namespace Swig {
|
namespace Swig {
|
||||||
/* base class for director exceptions */
|
/* base class for director exceptions */
|
||||||
class DirectorException {
|
class DirectorException {
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,8 @@ SWIGRUNTIME void SWIG_Octave_SetModule(void *clientdata, swig_module_info *point
|
||||||
typedef octave_value_list(*octave_func) (const octave_value_list &, int);
|
typedef octave_value_list(*octave_func) (const octave_value_list &, int);
|
||||||
class octave_swig_type;
|
class octave_swig_type;
|
||||||
|
|
||||||
|
# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
|
||||||
|
|
||||||
namespace Swig {
|
namespace Swig {
|
||||||
class Director;
|
class Director;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,13 +85,13 @@ namespace Swig {
|
||||||
}
|
}
|
||||||
# endif /* SWIG_DIRECTOR_RTDIR */
|
# endif /* SWIG_DIRECTOR_RTDIR */
|
||||||
|
|
||||||
# define SWIG_DIRECTOR_CAST(Arg) Swig::get_rtdir(static_cast<void*>(Arg))
|
# define SWIG_DIRECTOR_CAST(ARG) Swig::get_rtdir(static_cast<void*>(ARG))
|
||||||
# define SWIG_DIRECTOR_RGTR(Arg1, Arg2) Swig::set_rtdir(static_cast<void*>(Arg1), Arg2)
|
# define SWIG_DIRECTOR_RGTR(ARG1, ARG2) Swig::set_rtdir(static_cast<void*>(ARG1), ARG2)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# define SWIG_DIRECTOR_CAST(Arg) dynamic_cast<Swig::Director*>(Arg)
|
# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
|
||||||
# define SWIG_DIRECTOR_RGTR(Arg1, Arg2)
|
# define SWIG_DIRECTOR_RGTR(ARG1, ARG2)
|
||||||
|
|
||||||
#endif /* SWIG_DIRECTOR_NORTTI */
|
#endif /* SWIG_DIRECTOR_NORTTI */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
|
# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)
|
||||||
|
|
||||||
namespace Swig {
|
namespace Swig {
|
||||||
/* memory handler */
|
/* memory handler */
|
||||||
struct GCItem
|
struct GCItem
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue