mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-24 13:32:39 +00:00
no message
This commit is contained in:
parent
b146399a7e
commit
74370db603
@ -100,6 +100,14 @@ namespace
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
template<class Fx>
|
||||
int16_t with_handle(uint32_t handle, Fx fx)
|
||||
{
|
||||
auto iter = HandleMap.find(handle);
|
||||
if (iter == HandleMap.end()) return MacOS::memWZErr;
|
||||
return fx(iter->second);
|
||||
}
|
||||
}
|
||||
|
||||
namespace MM
|
||||
|
Loading…
Reference in New Issue
Block a user