| 3081 | }; |
| 3082 | |
| 3083 | void fxDescribeInstrumentation(txMachine* the, txInteger count, txString* names, txString* units) |
| 3084 | { |
| 3085 | txInteger i, j = 0; |
| 3086 | #ifdef mxDebug |
| 3087 | if (fxIsConnected(the)) { |
| 3088 | fxEchoStart(the); |
| 3089 | fxEcho(the, "<instruments>"); |
| 3090 | for (i = 0; i < count; i++, j++) { |
| 3091 | fxEcho(the, "<instrument name=\""); |
| 3092 | fxEchoString(the, names[i]); |
| 3093 | fxEcho(the, "\" value=\""); |
| 3094 | fxEchoString(the, units[i]); |
| 3095 | fxEcho(the, "\"/>"); |
| 3096 | } |
| 3097 | for (i = 0; i < xsInstrumentCount; i++, j++) { |
| 3098 | fxEcho(the, "<instrument name=\""); |
| 3099 | fxEchoString(the, (txString) xsInstrumentNames[i]); |
| 3100 | fxEcho(the, "\" value=\""); |
| 3101 | fxEchoString(the, (txString) xsInstrumentUnits[i]); |
| 3102 | fxEcho(the, "\"/>"); |
| 3103 | } |
| 3104 | fxEcho(the, "</instruments>"); |
| 3105 | fxEchoStop(the); |
| 3106 | //fxReceive(the); |
| 3107 | return; |
| 3108 | } |
| 3109 | #endif |
| 3110 | #ifndef mxNoConsole |
| 3111 | j = 0; |
| 3112 | c_printf("instruments key: "); |
| 3113 | for (i = 0; i < count; i++, j++) { |
| 3114 | if (j) |
| 3115 | c_printf(","); |
| 3116 | c_printf("%s", names[i]); |
| 3117 | } |
| 3118 | for (i = 0; i < xsInstrumentCount; i++, j++) { |
| 3119 | if (j) |
| 3120 | c_printf(","); |
| 3121 | c_printf("%s", xsInstrumentNames[i]); |
| 3122 | } |
| 3123 | c_printf("\n"); |
| 3124 | #elif pebble |
| 3125 | j = 0; |
| 3126 | modLog_transmit("instruments key: "); |
| 3127 | for (i = 0; i < count; i++, j++) { |
| 3128 | if (!names[i]) |
| 3129 | break; |
| 3130 | if (j) |
| 3131 | modLog_transmit(","); |
| 3132 | modLog_transmit(names[i]); |
| 3133 | } |
| 3134 | for (i = 0; i < xsInstrumentCount; i++, j++) { |
| 3135 | if (j) |
| 3136 | modLog_transmit(","); |
| 3137 | modLog_transmit(xsInstrumentNames[i]); |
| 3138 | } |
| 3139 | modLog_transmit("\n"); |
| 3140 | #endif |
no test coverage detected