Skip to content

Commit

Permalink
Fixed is_strict def.
Browse files Browse the repository at this point in the history
> lib/Syntax/Keyword/Assert.xs:8:28: error: expected declaration specifiers or '...' before ')' token
>    8 | static bool is_strict(pTHX_)
>      |                            ^
  • Loading branch information
kfly8 committed Aug 24, 2024
1 parent daa3a05 commit 3dd1b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Syntax/Keyword/Assert.xs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "XSParseKeyword.h"

static bool is_strict(pTHX_)
static bool is_strict(pTHX)
{
dSP;

Expand Down Expand Up @@ -39,7 +39,7 @@ static OP *make_xcroak(pTHX_ OP *msg)

static int build_assert(pTHX_ OP **out, XSParseKeywordPiece *arg0, void *hookdata)
{
if (is_strict(aTHX_)) {
if (is_strict(aTHX)) {
// build the following code:
//
// Syntax::Keyword::Assert::_croak "Assertion failed"
Expand Down

0 comments on commit 3dd1b63

Please sign in to comment.