internal
| 434 | |
| 435 | // internal |
| 436 | void asCScriptFunction::DestroyHalfCreated() |
| 437 | { |
| 438 | asASSERT( externalRefCount.get() == 0 && internalRefCount.get() == 1 ); |
| 439 | |
| 440 | // Set the funcType to dummy so the destructor won't complain |
| 441 | funcType = asFUNC_DUMMY; |
| 442 | |
| 443 | // If the bytecode exist remove it before destroying, otherwise it |
| 444 | // will fail when the destructor releases the references as the bytecode |
| 445 | // is not fully constructed. |
| 446 | if( scriptData ) |
| 447 | scriptData->byteCode.SetLength(0); |
| 448 | |
| 449 | asDELETE(this, asCScriptFunction); |
| 450 | } |
| 451 | |
| 452 | // internal |
| 453 | void asCScriptFunction::DestroyInternal() |
no test coverage detected