Merge pull request #1000 from nasa/999

Fix template regex in convert_swig
This commit is contained in:
dbankieris 2020-05-15 15:44:29 -05:00 committed by GitHub
commit b0f9a2240b
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
%define %trick_cast_as(TYPE, NAME)
%inline %{
/* caseAs##NAME casts incoming ptrs as the target type. Takes incoming object and tests if it
/* castAs##NAME casts incoming ptrs as the target type. Takes incoming object and tests if it
is a compatible type, a void *, or an integer (raw pointer value). If it is any of these
types it returns the incoming value as a pointer to the outgoing type. The integer
conversion is used by the input processor to associate named allocations in the

View File

@ -88,7 +88,7 @@ my $class_def = qr/(?:class|struct)\s* # keyword class or st
(?:\{|:(?!\:)) # { or punctuator :
/sx ;
my $template_def = qr/template\s* # keyword template
<[^>]+>\s* # template parameters
<.*?>\s* # template parameters
(?:class|struct) # keyword class or struct
\s+[_A-Za-z]\w*\s* # class name
/sx ;