Skip to content

Commit 62974ca

Browse files
committed
windows isDebuggerAttached variant
1 parent 72bd107 commit 62974ca

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/nbl/system/CSystemWin32.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ class NBL_API2 CSystemWin32 : public ISystem
121121
}
122122
};
123123

124+
bool NBL_API2 isDebuggerAttached();
125+
124126
}
125127
#endif
126128

src/nbl/system/CSystemWin32.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,10 @@ core::smart_refctd_ptr<ISystemFile> CSystemWin32::CCaller::createFile(const std:
101101
}
102102
return core::make_smart_refctd_ptr<CFileWin32>(core::smart_refctd_ptr<ISystem>(m_system),path(filename),flags,_mappedPtr,_native,_fileMappingObj);
103103
}
104+
105+
bool isDebuggerAttached()
106+
{
107+
return IsDebuggerPresent();
108+
}
109+
104110
#endif

0 commit comments

Comments
 (0)