interface
| 1009 | |
| 1010 | // interface |
| 1011 | int asCScriptEngine::Release() const |
| 1012 | { |
| 1013 | int r = refCount.atomicDec(); |
| 1014 | |
| 1015 | if( r == 0 ) |
| 1016 | { |
| 1017 | // It is possible that some function will temporarily increment the engine ref count |
| 1018 | // during clean-up for example while destroying the objects in the garbage collector. |
| 1019 | if( !inDestructor ) |
| 1020 | asDELETE(const_cast<asCScriptEngine*>(this),asCScriptEngine); |
| 1021 | return 0; |
| 1022 | } |
| 1023 | |
| 1024 | return r; |
| 1025 | } |
| 1026 | |
| 1027 | // interface |
| 1028 | int asCScriptEngine::ShutDownAndRelease() |
no test coverage detected