mirror of
https://github.com/nasa/trick.git
synced 2025-02-21 01:31:25 +00:00
parent
02c5799550
commit
0a5a202053
@ -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
|
||||
|
@ -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 ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user