Don't punch me in the face, and also fix the compilation, and also fix a stupid bug in log replay.
This commit is contained in:
@@ -120,7 +120,7 @@ bool rivatimer_really_exists(rivatimer_t* rivatimer)
|
||||
void rivatimer_destroy(rivatimer_t* rivatimer_ptr)
|
||||
{
|
||||
if (!rivatimer_really_exists(rivatimer_ptr))
|
||||
fatal("rivatimer_destroy: The timer was already destroyed, or never existed in the first place. Punch starfrost in the face");
|
||||
fatal("rivatimer_destroy: The timer was already destroyed, or never existed in the first place.");
|
||||
|
||||
// Case: We are destroying the head
|
||||
if (rivatimer_ptr == rivatimer_head)
|
||||
@@ -221,7 +221,7 @@ void rivatimer_update_all()
|
||||
void rivatimer_start(rivatimer_t* rivatimer_ptr)
|
||||
{
|
||||
if (!rivatimer_really_exists(rivatimer_ptr))
|
||||
fatal("rivatimer_start: The timer has been destroyed, or never existed in the first place. Punch starfrost in the face");
|
||||
fatal("rivatimer_start: The timer has been destroyed, or never existed in the first place.");
|
||||
|
||||
if (rivatimer_ptr->period <= 0)
|
||||
fatal("rivatimer_start: Zero period!");
|
||||
@@ -239,7 +239,7 @@ void rivatimer_start(rivatimer_t* rivatimer_ptr)
|
||||
void rivatimer_stop(rivatimer_t* rivatimer_ptr)
|
||||
{
|
||||
if (!rivatimer_really_exists(rivatimer_ptr))
|
||||
fatal("rivatimer_stop: The timer has been destroyed, or never existed in the first place. Punch starfrost in the face");
|
||||
fatal("rivatimer_stop: The timer has been destroyed, or never existed in the first place.");
|
||||
|
||||
rivatimer_ptr->running = false;
|
||||
rivatimer_ptr->time = 0;
|
||||
@@ -249,7 +249,7 @@ void rivatimer_stop(rivatimer_t* rivatimer_ptr)
|
||||
double rivatimer_get_time(rivatimer_t* rivatimer_ptr)
|
||||
{
|
||||
if (!rivatimer_really_exists(rivatimer_ptr))
|
||||
fatal("rivatimer_get_time: The timer has been destroyed, or never existed in the first place. Punch starfrost in the face");
|
||||
fatal("rivatimer_get_time: The timer has been destroyed, or never existed in the first place.");
|
||||
|
||||
return rivatimer_ptr->time;
|
||||
}
|
||||
@@ -257,7 +257,7 @@ double rivatimer_get_time(rivatimer_t* rivatimer_ptr)
|
||||
void rivatimer_set_callback(rivatimer_t* rivatimer_ptr, void (*callback)(double real_time))
|
||||
{
|
||||
if (!rivatimer_really_exists(rivatimer_ptr))
|
||||
fatal("rivatimer_set_callback: The timer has been destroyed, or never existed in the first place. Punch starfrost in the face");
|
||||
fatal("rivatimer_set_callback: The timer has been destroyed, or never existed in the first place.");
|
||||
|
||||
if (!callback)
|
||||
fatal("rivatimer_set_callback: No callback!");
|
||||
@@ -268,7 +268,7 @@ void rivatimer_set_callback(rivatimer_t* rivatimer_ptr, void (*callback)(double
|
||||
void rivatimer_set_period(rivatimer_t* rivatimer_ptr, double period)
|
||||
{
|
||||
if (!rivatimer_really_exists(rivatimer_ptr))
|
||||
fatal("rivatimer_set_period: The timer has been destroyed, or never existed in the first place. Punch starfrost in the face");
|
||||
fatal("rivatimer_set_period: The timer has been destroyed, or never existed in the first place.");
|
||||
|
||||
rivatimer_ptr->period = period;
|
||||
}
|
||||
Reference in New Issue
Block a user