[teagba] Wrap BIOS functions in namespaced C++ functions
This commit is contained in:
parent
32df55ea43
commit
bde511dd85
23
deps/teagba/include/teagba/bios.hpp
vendored
23
deps/teagba/include/teagba/bios.hpp
vendored
@ -20,3 +20,26 @@ void teagba_intrwait(unsigned discardExistingIntrs, unsigned intrSubs);
|
||||
void teagba_vblankintrwait();
|
||||
|
||||
}
|
||||
|
||||
namespace teagba {
|
||||
|
||||
// waits for any interrupt
|
||||
inline auto halt() noexcept {
|
||||
return teagba_halt();
|
||||
}
|
||||
|
||||
inline auto stop() noexcept {
|
||||
return teagba_stop();
|
||||
}
|
||||
|
||||
// waits for interrupts specified in interSubs
|
||||
inline auto intrwait(unsigned discardExistingIntrs, unsigned intrSubs) noexcept {
|
||||
return teagba_intrwait(discardExistingIntrs, intrSubs);
|
||||
}
|
||||
|
||||
// waits for vblank interrupt
|
||||
inline auto vblankintrwait() noexcept {
|
||||
return teagba_vblankintrwait();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user