| 958 | } |
| 959 | |
| 960 | void fxStripInstance(txLinker* linker, txMachine* the, txSlot* instance) |
| 961 | { |
| 962 | txSlot* slot = instance->next; |
| 963 | while (slot) { |
| 964 | if (slot->kind == XS_HOST_FUNCTION_KIND) |
| 965 | fxStripCallback(linker, slot->value.hostFunction.builder->callback); |
| 966 | else if (slot->kind == XS_ACCESSOR_KIND) { |
| 967 | txSlot* function; |
| 968 | function = slot->value.accessor.getter; |
| 969 | if (function && (function->next->kind == XS_CALLBACK_KIND)) |
| 970 | fxStripCallback(linker, function->next->value.callback.address); |
| 971 | function = slot->value.accessor.setter; |
| 972 | if (function && (function->next->kind == XS_CALLBACK_KIND)) |
| 973 | fxStripCallback(linker, function->next->value.callback.address); |
| 974 | } |
| 975 | slot = slot->next; |
| 976 | } |
| 977 | } |
| 978 | |
| 979 | void fxStripName(txLinker* linker, txString name) |
| 980 | { |
no test coverage detected