You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 1.12 (master branch of this repo) it does this:
> .\spcomp.exe .\test_if_endif.sp
SourcePawn Compiler 1.12
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC
.\test_if_endif.sp(1) : error 001: expected token: "#endif", but found "-end of file-"
.\test_if_endif.sp(9) : error 030: compound statement not closed at the end of file (started at line 9)
9 | }
----------^
2 Errors.
(or something like this with the latest sm 1.12 7164 build)
// H:\steamcmd\cstrike\cstrike\addons\sourcemod\scripting\include\entity_prop_stocks.inc(590) : error 030: compound statement not closed at the end of file (started at line 590)
// 590 | }
// ---------^
//
// .\test_if_endif.sp(1) : error 001: expected token: "#endif", but found "-end of file-"
//
// 2 Errors.
//
// Compilation Time: 0.22 sec
// ----------------------------------------
Nested if/endif pairs used to work in SM 1.11 like this:
In 1.12 (master branch of this repo) it does this:
(or something like this with the latest sm 1.12 7164 build)
this will still error:
this will work:
This might:tm: be intended now but I expect that it's probably not
The text was updated successfully, but these errors were encountered: