Skip to content

Project compiler constants not applied to packages #1890

@fafalone

Description

@fafalone

Describe the bug
In project settings, there's an option to specify compiler constants. Prior to Beta 424, these were applied to packages referenced by the project, however now they're not applied.

To Reproduce
For example, in a project with WinDevLib added, set compiler constant WINDEVLIB_LITE=1, then in local project code, Dim x As Long = L2_REASON_CODE_GROUP_SIZE. It should give an error, as that constant is within a module, wdAPIWLAN.twin, that should have been excluded #If WINDEVLIB_LITE <> 0.

Expected behavior
Compiler constants should be applied to packages a project has added.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • twinBASIC compiler version 0.15.592

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions