fix bug #1263457
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ff8bed0160
commit
46318e8766
5 changed files with 28 additions and 5 deletions
|
|
@ -130,10 +130,10 @@ nocppval
|
|||
#endif
|
||||
|
||||
#if defined(__cplusplus) && defined(SWIG_CPLUSPLUS_CAST)
|
||||
# define %const_cast(a,Type...) const_cast<Type >(a)
|
||||
# define %static_cast(a,Type...) static_cast<Type >(a)
|
||||
# define %reinterpret_cast(a,Type...) reinterpret_cast<Type >(a)
|
||||
# define %numeric_cast(a,Type...) static_cast<Type >(a)
|
||||
# define %const_cast(a,Type...) const_cast< Type >(a)
|
||||
# define %static_cast(a,Type...) static_cast< Type >(a)
|
||||
# define %reinterpret_cast(a,Type...) reinterpret_cast< Type >(a)
|
||||
# define %numeric_cast(a,Type...) static_cast< Type >(a)
|
||||
#else /* C case */
|
||||
# define %const_cast(a,Type...) (Type)(a)
|
||||
# define %static_cast(a,Type...) (Type)(a)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue