Skip to content

extern SP_Circuit decleration #35

Description

@ecrinyildiz

idk how to point out the problem but the decleration of extern SP_Circuit cirtuit in main.h causes a lot of trouble. we do MUST inject this variable into the GUI/SaveLoad via "main.h" inclusion. during the modularization process, i CANT seperate the gui folder with the apps folders(which is the application layer, it should depends the modules but not directly bonded with them). so it means gui module cant live standalone
suggestions:

  • we can pass the variable into the gui manager.
  • we can use singleton pattern to access the circuit
    im open to discuss any other alternative solutions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions