Skip to content

Commit

Permalink
Fix for SWIG 4.2.1 not creating ID methods
Browse files Browse the repository at this point in the history
See #956
  • Loading branch information
Robadob committed Oct 2, 2024
1 parent ed7d1d7 commit 0dccb66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swig/python/flamegpu.i
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ TEMPLATE_VARIABLE_ARRAY_INSTANTIATE_INTS(function, classfunction)
* This also maps ID to id_t, this should be synonymous with UInt/unsigned int
*/
%define TEMPLATE_VARIABLE_INSTANTIATE_ID(function, classfunction)
TEMPLATE_VARIABLE_INSTANTIATE(function, classfunction)
%template(function ## ID) classfunction<flamegpu::id_t>;
TEMPLATE_VARIABLE_INSTANTIATE(function, classfunction)
%enddef

// Array version, passing default 2nd template arg 0
%define TEMPLATE_VARIABLE_ARRAY_INSTANTIATE_ID(function, classfunction)
TEMPLATE_VARIABLE_ARRAY_INSTANTIATE(function, classfunction)
%template(function ## ID) classfunction<flamegpu::id_t, 0>;
TEMPLATE_VARIABLE_ARRAY_INSTANTIATE(function, classfunction)
%enddef


Expand Down

0 comments on commit 0dccb66

Please sign in to comment.