added VISUALIZER_DATA_PATH variable
This commit is contained in:
@@ -67,6 +67,7 @@ using json = nlohmann::json;
|
||||
extern set<short*> allocated;
|
||||
extern set<int*> allocatedInt;
|
||||
extern bool runAsClient;
|
||||
extern const char* VISUALIZER_DATA_PATH;
|
||||
|
||||
bool showDebug = false;
|
||||
static const string interruptEx = "Interrupted by user";
|
||||
@@ -298,7 +299,7 @@ static void runPassesForVisualizer(const short *projName, const vector<passes> &
|
||||
while (passDone == 0)
|
||||
{
|
||||
FILE* interrupt_old = fopen("INTERRUPT", "r");
|
||||
FILE* interrupt = fopen("visualiser_data/INTERRUPT", "r");
|
||||
FILE* interrupt = fopen((string(VISUALIZER_DATA_PATH) + "/INTERRUPT").c_str(), "r");
|
||||
if (interrupt || interrupt_old)
|
||||
{
|
||||
if (showDebug)
|
||||
|
||||
Reference in New Issue
Block a user