pawn-lang / compiler

Pawn compiler for SA-MP with bug fixes and new features - runs on Windows, Linux, macOS
Other
306 stars 72 forks source link

Compat mode include guards don't work. #693

Open Y-Less opened 2 years ago

Y-Less commented 2 years ago

Issue description:

The _inc_file automatic include guards don't seem to prevent including files any mode

Minimal complete verifiable example (MCVE):

#pragma compat 1

#define _inc_console
#include <console>

main()
{
    print("hi");
}

That should give an undefined symbol error on print, because console.inc is never loaded. But it doesn't.

Workspace Information:

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity.