# HG changeset patch # User Sean Halle # Date 1396098650 25200 # Node ID d561f123f9a61f87cf3e374bc0e890449bb35439 # Parent c6fc793f68a55890e885fe151ced597bda447a7b working version diff -r c6fc793f68a5 -r d561f123f9a6 PR_defs__turn_on_and_off.h --- a/PR_defs__turn_on_and_off.h Tue Sep 24 08:42:31 2013 -0700 +++ b/PR_defs__turn_on_and_off.h Sat Mar 29 06:10:50 2014 -0700 @@ -19,14 +19,6 @@ * has only a single thread and animates Slvs one at a time */ //#define DEBUG__TURN_ON_SEQUENTIAL_MODE - //check for sequential mode and redefine num cores to be 1 so that lang - // code doesn't have to do special #ifdef for sequential mode -#ifdef DEBUG__TURN_ON_SEQUENTIAL_MODE - #ifdef NUM_CORES - #undef NUM_CORES - #define NUM_CORES 1 - #endif -#endif /*turns on the probe-instrumentation in the application -- when not * defined, the calls to the probe functions turn into comments diff -r c6fc793f68a5 -r d561f123f9a6 main.c --- a/main.c Tue Sep 24 08:42:31 2013 -0700 +++ b/main.c Sat Mar 29 06:10:50 2014 -0700 @@ -13,6 +13,8 @@ #define NO_INPUT_OR_OUTPUT NULL + + /*This demonstrates the use of the proto-runtime system. It allows multiple * languages to be mixed within a single sub-program. It also allows multiple * sub-programs to be started, where each uses its own set of languages. The @@ -22,8 +24,8 @@ int main( int argc, char **argv ) { PRProcess *testProcess1, *testProcess2; - DEBUG__printf2(TRUE, "arguments: %s | %s", argv[0], argv[1] ); - + DEBUG__printf(TRUE, "arguments: %s | %s", argv[0], argv[1] ); + //A proto-runtime based language sits on top of the proto-runtime. So, // first start the proto-runtime system, then create processes (which // start languages inside themselves)