| 430 | |
| 431 | extern const txTypeDispatch gxTypeDispatches[]; |
| 432 | txInteger fxGetTypeDispatchIndex(txTypeDispatch* dispatch) |
| 433 | { |
| 434 | txInteger i = 0; |
| 435 | while (i < mxTypeArrayCount) { |
| 436 | if (dispatch == &gxTypeDispatches[i]) |
| 437 | return i; |
| 438 | i++; |
| 439 | } |
| 440 | fprintf(stderr, "dispatch %p %p\n", dispatch, &gxTypeDispatches[0]); |
| 441 | return -1; |
| 442 | } |
| 443 | |
| 444 | extern const txTypeAtomics gxTypeAtomics[]; |
| 445 | txInteger fxGetTypeAtomicsIndex(txTypeAtomics* atomics) |