internal
| 544 | |
| 545 | // internal |
| 546 | int asCScriptFunction::ReleaseInternal() |
| 547 | { |
| 548 | int r = internalRefCount.atomicDec(); |
| 549 | if( r == 0 && |
| 550 | funcType != asFUNC_DUMMY ) |
| 551 | { |
| 552 | // There are no more internal references, if there are also no |
| 553 | // external references then it is time to delete the function |
| 554 | if( externalRefCount.get() == 0 ) |
| 555 | { |
| 556 | asDELETE(const_cast<asCScriptFunction*>(this),asCScriptFunction); |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | return r; |
| 561 | } |
| 562 | |
| 563 | // interface |
| 564 | int asCScriptFunction::GetTypeId() const |
no test coverage detected