interface
| 3967 | |
| 3968 | // interface |
| 3969 | asILockableSharedBool *asCScriptEngine::GetWeakRefFlagOfScriptObject(void *obj, const asITypeInfo *type) const |
| 3970 | { |
| 3971 | // Make sure it is not a null pointer |
| 3972 | if( obj == 0 || type == 0 ) return 0; |
| 3973 | |
| 3974 | const asCObjectType *objType = static_cast<const asCObjectType *>(type); |
| 3975 | asILockableSharedBool *dest = 0; |
| 3976 | if( objType->beh.getWeakRefFlag ) |
| 3977 | { |
| 3978 | // Call the getweakrefflag behaviour |
| 3979 | dest = reinterpret_cast<asILockableSharedBool*>(CallObjectMethodRetPtr(obj, objType->beh.getWeakRefFlag)); |
| 3980 | } |
| 3981 | return dest; |
| 3982 | } |
| 3983 | |
| 3984 | // internal |
| 3985 | // orig is the parameter type that is to be replaced |
no outgoing calls
no test coverage detected