History

undo test commenting out code with preprocessor directives

Jack Atherton committed 7 years ago

Commit b91dd1e1 parent db1a1dd26 files · +7454 −7195Browse files

Showing the changes to src/core/chuck.cpp (1 of 26 files). Show all

Unified · Split

src/core/chuck.cpp+30−14
@@ -36,10 +36,20 @@ · 35 unmodified lines
3636 //-----------------------------------------------------------------------------
3737 #include "chuck.h"
3838 #include "chuck_errmsg.h"
39−//#include "chuck_io.h"
40−//#include "chuck_otf.h"
41−//#include "ulib_machine.h"
42−//#include "util_network.h"
39+
40+#ifndef __DISABLE_SERIAL__
41+#include "chuck_io.h"
42+#endif
43+
44+#ifndef __DISABLE_OTF_SERVER__
45+#include "chuck_otf.h"
46+#include "ulib_machine.h"
47+#endif
48+
49+#ifndef __DISABLE_NETWORK__
50+#include "util_network.h"
51+#endif
52+
4353 #include "util_string.h"
4454 #include "ugen_stk.h"
4555
@@ -100,14 +110,16 @@ const char * ChucK::version() · 54 unmodified lines
100110
101111
102112
103−////-----------------------------------------------------------------------------
104−//// name: intSize()
105−//// desc: get chuck int size (in bits)
106−////-----------------------------------------------------------------------------
107−//t_CKUINT ChucK::intSize()
108−//{
109−// return machine_intsize();
110−//}
113+#ifndef __DISABLE_OTF_SERVER__
114+//-----------------------------------------------------------------------------
115+// name: intSize()
116+// desc: get chuck int size (in bits)
117+//-----------------------------------------------------------------------------
118+t_CKUINT ChucK::intSize()
119+{
120+ return machine_intsize();
121+}
122+#endif
111123
112124
113125
@@ -1322,8 +1334,10 @@ void ChucK::globalCleanup() · 1208 unmodified lines
13221334 HidInManager::cleanup();
13231335 #endif // __ALTER_HID__
13241336
1337+ #ifndef __DISABLE_SERIAL__
13251338 // shutdown serial
1326−// Chuck_IO_Serial::shutdown();
1339+ Chuck_IO_Serial::shutdown();
1340+ #endif
13271341
13281342 #ifndef __DISABLE_KBHIT__
13291343 // shutdown kb loop
@@ -1368,5 +1382,7 @@ t_CKINT ChucK::getLogLevel() · 38 unmodified lines
13681382 //-----------------------------------------------------------------------------
13691383 void ChucK::poop()
13701384 {
1371−// ::uh();
1385+ #ifndef __DISABLE_OTF_SERVER__
1386+ ::uh();
1387+ #endif
13721388 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t