mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
CGrammar: Correct translation of sizeof in static assertions
This commit is contained in:
parent
b2e6d7e4c0
commit
9d3c8c0285
@ -13,8 +13,8 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 786,
|
||||
BUILD_DATE => "2014-09-11",
|
||||
BUILD_REVISION => 788,
|
||||
BUILD_DATE => "2014-09-18",
|
||||
};
|
||||
|
||||
1;
|
||||
|
@ -695,7 +695,7 @@ Static_assert:
|
||||
| 'static_assert'
|
||||
|
||||
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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user