| 458 | } |
| 459 | |
| 460 | int CScriptAny::Release() const |
| 461 | { |
| 462 | // Decrease the ref counter |
| 463 | gcFlag = false; |
| 464 | if( asAtomicDec(refCount) == 0 ) |
| 465 | { |
| 466 | // Delete this object as no more references to it exists |
| 467 | delete this; |
| 468 | return 0; |
| 469 | } |
| 470 | |
| 471 | return refCount; |
| 472 | } |
| 473 | |
| 474 | int CScriptAny::GetRefCount() |
| 475 | { |
no test coverage detected