mirror of
https://github.com/reactos/reactos.git
synced 2025-06-20 04:45:19 +00:00
[CMAKE] Define _DEBUG for better ATL debugging (Retry) (#3519)
CORE-17505
This commit is contained in:
parent
0a26c7c5d2
commit
98203cea23
4 changed files with 7 additions and 5 deletions
|
@ -4,7 +4,6 @@
|
||||||
#define _INC_WINDOWS
|
#define _INC_WINDOWS
|
||||||
#define COM_NO_WINDOWS_H
|
#define COM_NO_WINDOWS_H
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#define _DEBUG
|
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
|
||||||
add_library(atl_classes INTERFACE)
|
add_library(atl_classes INTERFACE)
|
||||||
|
if(DBG)
|
||||||
|
target_compile_definitions(atl_classes INTERFACE _DEBUG)
|
||||||
|
endif(DBG)
|
||||||
|
|
||||||
target_include_directories(atl_classes INTERFACE
|
target_include_directories(atl_classes INTERFACE
|
||||||
$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}>)
|
$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}>)
|
||||||
|
|
|
@ -456,7 +456,7 @@ class CComCreator2
|
||||||
public:
|
public:
|
||||||
static HRESULT WINAPI CreateInstance(void *pv, REFIID riid, LPVOID *ppv)
|
static HRESULT WINAPI CreateInstance(void *pv, REFIID riid, LPVOID *ppv)
|
||||||
{
|
{
|
||||||
ATLASSERT(ppv != NULL && &riid != NULL);
|
ATLASSERT(ppv != NULL);
|
||||||
|
|
||||||
if (pv == NULL)
|
if (pv == NULL)
|
||||||
return T1::CreateInstance(NULL, riid, ppv);
|
return T1::CreateInstance(NULL, riid, ppv);
|
||||||
|
|
|
@ -68,19 +68,19 @@ public:
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE QueryInterface(const IID & /* riid */, void ** /* ppvObject */ )
|
HRESULT STDMETHODCALLTYPE QueryInterface(const IID & /* riid */, void ** /* ppvObject */ )
|
||||||
{
|
{
|
||||||
ATLASSERT(_T("statically linked in CRegObject is not a com object. Do not callthis function"));
|
ATLASSERT(FALSE && TEXT("statically linked in CRegObject is not a com object. Do not call this function"));
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG STDMETHODCALLTYPE AddRef()
|
ULONG STDMETHODCALLTYPE AddRef()
|
||||||
{
|
{
|
||||||
ATLASSERT(_T("statically linked in CRegObject is not a com object. Do not callthis function"));
|
ATLASSERT(FALSE && TEXT("statically linked in CRegObject is not a com object. Do not call this function"));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG STDMETHODCALLTYPE Release()
|
ULONG STDMETHODCALLTYPE Release()
|
||||||
{
|
{
|
||||||
ATLASSERT(_T("statically linked in CRegObject is not a com object. Do not callthis function"));
|
ATLASSERT(FALSE && TEXT("statically linked in CRegObject is not a com object. Do not call this function"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue