diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-02-14 15:55:01 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-02-14 15:55:01 +0100 |
commit | 531a6e90cbf1cc2afd8eae7683bda48c5cf4506a (patch) | |
tree | c6b22210b7669492ae726ad494937a32a5fabeac /synth/in_synth_cli.cpp | |
parent | d4e928c4eecdcb12ebc96054c92cfc7b701c9a83 (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.cpp | 13 |
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; |