| 1082 | } |
| 1083 | |
| 1084 | void asCScriptObject::FreeObject(void *ptr, asCObjectType *in_objType, asCScriptEngine *engine) |
| 1085 | { |
| 1086 | if( in_objType->flags & asOBJ_REF ) |
| 1087 | { |
| 1088 | asASSERT( (in_objType->flags & asOBJ_NOCOUNT) || in_objType->beh.release ); |
| 1089 | if(in_objType->beh.release ) |
| 1090 | engine->CallObjectMethod(ptr, in_objType->beh.release); |
| 1091 | } |
| 1092 | else |
| 1093 | { |
| 1094 | if( in_objType->beh.destruct ) |
| 1095 | engine->CallObjectMethod(ptr, in_objType->beh.destruct); |
| 1096 | |
| 1097 | engine->CallFree(ptr); |
| 1098 | } |
| 1099 | } |
| 1100 | |
| 1101 | void asCScriptObject::CopyObject(const void *src, void *dst, asCObjectType *in_objType, asCScriptEngine *engine) |
| 1102 | { |
nothing calls this directly
no test coverage detected