summaryrefslogtreecommitdiff
path: root/synth/in_synth_cli.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@thinkpad.(none)>2011-02-14 15:55:01 +0100
committerFlorian Jung <flo@thinkpad.(none)>2011-02-14 15:55:01 +0100
commit531a6e90cbf1cc2afd8eae7683bda48c5cf4506a (patch)
treec6b22210b7669492ae726ad494937a32a5fabeac /synth/in_synth_cli.cpp
parentd4e928c4eecdcb12ebc96054c92cfc7b701c9a83 (diff)
Clean enabling/disabling of frameskip and watching per defines
Diffstat (limited to 'synth/in_synth_cli.cpp')
-rw-r--r--synth/in_synth_cli.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/synth/in_synth_cli.cpp b/synth/in_synth_cli.cpp
index fc24b03..4d4ef76 100644
--- a/synth/in_synth_cli.cpp
+++ b/synth/in_synth_cli.cpp
@@ -10,7 +10,10 @@
#include "globals.h"
#include "load.h"
#include "lfos.h"
-#include "watch_files.h"
+
+#ifdef WATCHFILES
+ #include "watch_files.h"
+#endif
using namespace std;
@@ -54,7 +57,9 @@ void lock_and_load_program(int prg_no, string file)
{
pthread_mutex_lock(&prog_load_mutex);
- remove_watch(prg_no);
+ #ifdef WATCHFILES
+ remove_watch(prg_no);
+ #endif
do_request(prg_no, true);
@@ -63,7 +68,9 @@ void lock_and_load_program(int prg_no, string file)
cout << "success" << endl;
programfile[prg_no]=file;
- add_watch(prg_no);
+ #ifdef WATCHFILES
+ add_watch(prg_no);
+ #endif
}
else
cout << "failed" << endl;