1 2 3 4 5 6 7 8
%module namespace_struct %inline %{ // SWIG/R generated bad code for copyToR for a struct in a namespace in SWIG < 4.1.0 namespace X { struct Y { int x, y; }; } %}