Code cleanup: moving poly/ into xenia/base/
This commit is contained in:
31
src/xenia/base/debugging.h
Normal file
31
src/xenia/base/debugging.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2014 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_BASE_DEBUGGING_H_
|
||||
#define XENIA_BASE_DEBUGGING_H_
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace xe {
|
||||
namespace debugging {
|
||||
|
||||
// Returns true if a debugger is attached to this process.
|
||||
// The state may change at any time (attach after launch, etc), so do not
|
||||
// cache this value. Determining if the debugger is attached is expensive,
|
||||
// though, so avoid calling it frequently.
|
||||
bool IsDebuggerAttached();
|
||||
|
||||
// Breaks into the debugger if it is attached.
|
||||
// If no debugger is present, a signal will be raised.
|
||||
void Break();
|
||||
|
||||
} // namespace debugging
|
||||
} // namespace xe
|
||||
|
||||
#endif // XENIA_BASE_DEBUGGING_H_
|
||||
Reference in New Issue
Block a user