================ @@ -224,6 +224,13 @@ AND call SWIG_fail at the same time, because it will result in a double free. } $1 = (char *)malloc($2); } + +// Remove the default type check for this match. +// because if the match function has an overload and a typemap, +// it will typecheck against the original function instead of the +// typemap. +%typemap(typecheck, precedence=SWIG_TYPECHECK_POINTER) (char *dst_or_null, size_t dst_len) "" ---------------- Michael137 wrote:
Might be worth mentioning that this is required because the other overload is has a `numinputs=1` typemap. And the generated dispatching function will try to type check that as a `char*`, where in actuality it's an integer (correct me if I'm wrong). Does this mean it removes the type-check for all the other APIs with this signature too? Is that an issue? https://github.com/llvm/llvm-project/pull/165379 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
