add minor and missing noblock attributes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8755 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
35cac0f07f
commit
245ec68c4d
1 changed files with 5 additions and 7 deletions
|
|
@ -44,7 +44,7 @@
|
|||
%typemap(freearg) SWIGTYPE & "";
|
||||
|
||||
#if defined(__cplusplus) && defined(%implicitconv_flag)
|
||||
%typemap(in,implicitconv=1) const SWIGTYPE & (void *argp = 0, int res = 0) {
|
||||
%typemap(in,noblock=1,implicitconv=1) const SWIGTYPE & (void *argp = 0, int res = 0) {
|
||||
res = SWIG_ConvertPtr($input, &argp, $descriptor, %convertptr_flags | %implicitconv_flag);
|
||||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res, "$type", $symname, $argnum);
|
||||
|
|
@ -69,9 +69,8 @@
|
|||
|
||||
/* By value */
|
||||
#if defined(__cplusplus) && defined(%implicitconv_flag)
|
||||
%typemap(in,implicitconv=1) SWIGTYPE {
|
||||
void *argp;
|
||||
int res = SWIG_ConvertPtr($input, &argp, $&descriptor, %convertptr_flags | %implicitconv_flag);
|
||||
%typemap(in,implicitconv=1) SWIGTYPE (void *argp, int res = 0) {
|
||||
res = SWIG_ConvertPtr($input, &argp, $&descriptor, %convertptr_flags | %implicitconv_flag);
|
||||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res, "$type", $symname, $argnum);
|
||||
}
|
||||
|
|
@ -84,9 +83,8 @@
|
|||
}
|
||||
}
|
||||
#else
|
||||
%typemap(in) SWIGTYPE {
|
||||
void *argp;
|
||||
int res = SWIG_ConvertPtr($input, &argp, $&descriptor, %convertptr_flags);
|
||||
%typemap(in) SWIGTYPE (void *argp, int res = 0) {
|
||||
res = SWIG_ConvertPtr($input, &argp, $&descriptor, %convertptr_flags);
|
||||
if (!SWIG_IsOK(res)) {
|
||||
%argument_fail(res, "$type", $symname, $argnum);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue