SwigValueWrapper and SwigType * correction

Modifying the type by adding in SwigValueWrapper needs to follow the
normal SwigType conventions for correct and proper type handling.
This commit is contained in:
William S Fulton 2022-11-08 09:11:35 +00:00
commit ea3f043920

View file

@ -1565,11 +1565,7 @@ SwigType *SwigType_alttype(const SwigType *t, int local_tmap) {
}
if (use_wrapper) {
/* Need a space before the type in case it starts "::" (since the <:
* token is a digraph for [ in C++. Also need a space after the
* type in case it ends with ">" since then we form the token ">>".
*/
w = NewStringf("SwigValueWrapper< %s >", td);
w = NewStringf("SwigValueWrapper<(%s)>", td);
}
Delete(td);
return w;