Update some documentation.
This commit is contained in:
parent
cad23cea81
commit
2983b0c090
|
@ -34,8 +34,8 @@ class ExceptionHandler {
|
||||||
static bool Initialize();
|
static bool Initialize();
|
||||||
|
|
||||||
// Install an exception handler. Returns an ID which you can save to remove
|
// Install an exception handler. Returns an ID which you can save to remove
|
||||||
// this later. This will install the exception handler in the last place
|
// this later. This will install the exception handler in the last place.
|
||||||
// on Windows.
|
// TODO: ID support!
|
||||||
static uint32_t Install(Handler fn);
|
static uint32_t Install(Handler fn);
|
||||||
static bool Remove(uint32_t id);
|
static bool Remove(uint32_t id);
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,8 @@ bool ExceptionHandler::Initialize() {
|
||||||
|
|
||||||
uint32_t ExceptionHandler::Install(std::function<bool(Info* ex_info)> fn) {
|
uint32_t ExceptionHandler::Install(std::function<bool(Info* ex_info)> fn) {
|
||||||
handlers_.push_back(fn);
|
handlers_.push_back(fn);
|
||||||
|
|
||||||
|
// TODO: ID support!
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue