| 150 | #define mxModuleName(ID) c_strrchr(fxGetKeyName(the, (ID)), '/') |
| 151 | #define mxReportModuleQueue(LABEL) fxReportModuleQueue(the, queue, LABEL) |
| 152 | static void fxReportModuleQueue(txMachine* the, txSlot* queue, txString label) |
| 153 | { |
| 154 | static txString STATUS[8] = { |
| 155 | "NEW", |
| 156 | "LOADING", |
| 157 | "LOADED", |
| 158 | "LINKING", |
| 159 | "LINKED", |
| 160 | "EXECUTING", |
| 161 | "EXECUTED", |
| 162 | "ERROR", |
| 163 | }; |
| 164 | txSlot* module = queue->next; |
| 165 | fprintf(stderr, "%s %p\n", label, queue); |
| 166 | while (module) { |
| 167 | txString name = (module->ID != XS_NO_ID) ? fxGetKeyName(the, module->ID) : "?"; |
| 168 | fprintf(stderr, "\t'%s' %p %s\n", name, module->value.reference, STATUS[mxModuleStatus(module)]); |
| 169 | module = module->next; |
| 170 | } |
| 171 | } |
| 172 | #else |
| 173 | #define mxReportModuleQueue(LABEL) |
| 174 | #endif |
nothing calls this directly
no test coverage detected