// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #ifndef __HOLDERINST_H_ #define __HOLDERINST_H_ // This file contains holder instantiations which we can't put in holder.h because // the instantiations require _ASSERTE to be defined, which is not always the case // for placed that include holder.h. FORCEINLINE void SafeArrayRelease(SAFEARRAY* p) { SafeArrayDestroy(p); } class SafeArrayHolder : public Wrapper { public: SafeArrayHolder(SAFEARRAY* p = NULL) : Wrapper(p) { } FORCEINLINE void operator=(SAFEARRAY* p) { Wrapper::operator=(p); } }; #endif // __HOLDERINST_H_