mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Modpython: fix calling overloaded methods with parameter CString&
This commit is contained in:
@@ -105,6 +105,11 @@ class MCString : public std::map<CString, CString> {};
|
||||
}
|
||||
}
|
||||
|
||||
%typemap(typecheck) CString&, CString* {
|
||||
String* p;
|
||||
$1 = SWIG_IsOK(SWIG_ConvertPtr($input, (void**)&p, SWIG_TypeQuery("String*"), 0));
|
||||
}
|
||||
|
||||
/*TODO %typemap(in) bool& to be able to call from python functions which get bool& */
|
||||
|
||||
%typemap(out) bool&, bool* {
|
||||
|
||||
Reference in New Issue
Block a user