Skip to content

Commit

Permalink
Add clearance of SWIG typemap
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrir-naru committed Oct 3, 2024
1 parent d2dd789 commit e3effec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tool/swig/Coordinate.i
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ struct native_exception : public std::exception {
values[i] = (*self)[i];
}
}
%typemap(in) FloatT values[3];
%typemap(argout) FloatT values[3];
#endif
%typemap(in,numinputs=0) const void *check_block {
#ifdef SWIGRUBY
Expand All @@ -98,6 +100,7 @@ struct native_exception : public std::exception {
#endif
}
}
%clear const void *check_block;
};
#ifdef SWIGRUBY
%mixin System_3D "Enumerable";
Expand Down Expand Up @@ -170,6 +173,9 @@ struct native_exception : public std::exception {
%template(XYZ) System_XYZ<type, WGS84>;
%template(LLH) System_LLH<type, WGS84>;
%template(ENU) System_ENU<type, WGS84>;
%typemap(out) FloatT &;
%typemap(in) (type (&res)[3][3]);
%typemap(argout) (type (&res)[3][3]);
%enddef

CONCRETIZE(double);
Expand Down

0 comments on commit e3effec

Please sign in to comment.