| 1118 | } |
| 1119 | |
| 1120 | void asCScriptObject::CopyHandle(asPWORD *src, asPWORD *dst, asCObjectType *in_objType, asCScriptEngine *engine) |
| 1121 | { |
| 1122 | // asOBJ_NOCOUNT doesn't have addref or release behaviours |
| 1123 | asASSERT( (in_objType->flags & asOBJ_NOCOUNT) || (in_objType->beh.release && in_objType->beh.addref) ); |
| 1124 | |
| 1125 | if( *dst && in_objType->beh.release ) |
| 1126 | engine->CallObjectMethod(*(void**)dst, in_objType->beh.release); |
| 1127 | *dst = *src; |
| 1128 | if( *dst && in_objType->beh.addref ) |
| 1129 | engine->CallObjectMethod(*(void**)dst, in_objType->beh.addref); |
| 1130 | } |
| 1131 | |
| 1132 | // TODO: weak: Should move to its own file |
| 1133 | asCLockableSharedBool::asCLockableSharedBool() : value(false) |
nothing calls this directly
no test coverage detected