Skip to content

Commit ab66969

Browse files
committed
Allow __pragma to be used as a standalone statement
1 parent 8c04b0a commit ab66969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/compiler/sc1.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5510,6 +5510,11 @@ static void statement(int *lastindent,int allow_decl)
55105510
matchtoken(tSTATIC);
55115511
decl_enum(sLOCAL,FALSE);
55125512
break;
5513+
case t__PRAGMA:
5514+
dopragma();
5515+
needtoken(tTERM);
5516+
pragma_apply(curfunc);
5517+
break;
55135518
case t__EMIT: {
55145519
extern char *sc_tokens[];
55155520
const unsigned char *bck_lptr=lptr-strlen(sc_tokens[tok-tFIRST]);

0 commit comments

Comments
 (0)