chiark / gitweb /
macro.h: let F_TYPE_CMP() macro fail to compile, if second parameter is not const
authorHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 10:05:41 +0000 (12:05 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 18 Apr 2013 10:05:41 +0000 (12:05 +0200)
commita858b64dddf79177e12ed30f5e8c47a1471c8bfe
tree03d1603458599d8b49c5d553d407eea0164ac664
parent98f59e59e0c31ffcb953d3a7dba0da5e6f2f55f7
macro.h: let F_TYPE_CMP() macro fail to compile, if second parameter is not const

If the magic parameter is not a const, then the macro does not work, so
better fail to compile, than be surprised afterwards.
src/shared/macro.h