[nostalgia] Make almost everyting noexcept

This commit is contained in:
2021-04-20 01:56:41 -05:00
parent 161780cb91
commit 6ece0b6f9b
22 changed files with 139 additions and 136 deletions
+5 -4
View File
@@ -19,16 +19,17 @@ namespace nostalgia::core {
using event_handler = int(*)(Context*);
ox::Error init(Context *ctx);
ox::Error init(Context *ctx) noexcept;
ox::Error run(Context *ctx);
ox::Error run(Context *ctx) noexcept;
// Sets event handler that sleeps for the time given in the return value. The
// sleep time is a minimum of ~16 milliseconds.
void setEventHandler(event_handler);
void setEventHandler(event_handler) noexcept;
// Returns the number of milliseconds that have passed since the start of the
// program.
[[nodiscard]] uint64_t ticksMs();
[[nodiscard]]
uint64_t ticksMs() noexcept;
}