| 739 | } |
| 740 | |
| 741 | void* fxGetHostChunkValidate(txMachine* the, txSlot* slot, void* validator) |
| 742 | { |
| 743 | txSlot* host = fxCheckHostObject(the, slot); |
| 744 | if (host) { |
| 745 | if (host->flag & XS_HOST_CHUNK_FLAG) { |
| 746 | if (validator == host->value.host.variant.destructor) |
| 747 | return host->value.host.data; |
| 748 | mxSyntaxError("C: xsGetHostChunk: invalid host data"); |
| 749 | } |
| 750 | mxSyntaxError("C: xsGetHostChunk: no host data"); |
| 751 | } |
| 752 | mxSyntaxError("C: xsGetHostChunk: not a host object"); |
| 753 | return NULL; |
| 754 | } |
| 755 | |
| 756 | void* fxGetHostData(txMachine* the, txSlot* slot) |
| 757 | { |
nothing calls this directly
no test coverage detected