3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

CGrammar: Correct translation of sizeof in static assertions

This commit is contained in:
Pragmatic Software 2014-09-19 03:54:13 +00:00
parent b2e6d7e4c0
commit 9d3c8c0285
2 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 786, BUILD_REVISION => 788,
BUILD_DATE => "2014-09-11", BUILD_DATE => "2014-09-18",
}; };
1; 1;

View File

@ -695,7 +695,7 @@ Static_assert:
| 'static_assert' | 'static_assert'
static_assert_declaration: static_assert_declaration:
Static_assert '(' constant_expression ',' string ')' ';' Static_assert '(' constant_expression[context => 'static_assert'] ',' string ')' ';'
{ {
$return = "Halt compilation and produce the diagnostic $item{string} unless $item{constant_expression}.\n"; $return = "Halt compilation and produce the diagnostic $item{string} unless $item{constant_expression}.\n";
} }