vector/cmatch: Deprecate @const@ on shorthand templates

* vector/cmatch: Display warning on use of @const@ with short-hand
  comparison templates.
master
Mike Gerwitz 2018-01-18 15:43:11 -05:00
parent 0390923825
commit a1f2b2aad8
1 changed files with 6 additions and 0 deletions

View File

@ -192,6 +192,12 @@
<param name="@const@" desc="Match against constant value" />
<param name="@value@" desc="Match against variable" />
<if name="@const@">
<warning>
@const@ is deprecated; use @value@ with a #-prefix instead.
</warning>
</if>
<match on="@on@">
<dyn-node name="c:{@cmp@}">
<if name="@const@">