| 39 | #include "xsScript.h" |
| 40 | |
| 41 | void fxSetHostFunctionProperty(txMachine* the, txSlot* property, txCallback call, txInteger length, txID id) |
| 42 | { |
| 43 | txSlot* home = the->stack; |
| 44 | txSlot* function = fxNewHostFunction(the, call, length, id, XS_NO_ID); |
| 45 | txSlot* slot = mxFunctionInstanceHome(function); |
| 46 | slot->value.home.object = home->value.reference; |
| 47 | property->kind = the->stack->kind; |
| 48 | property->value = the->stack->value; |
| 49 | mxPop(); |
| 50 | } |
| 51 | |
| 52 | static void fx_lockdown_aux(txMachine* the, txInteger length, txSlot* prototype, txSlot* slot) |
| 53 | { |
no test coverage detected