1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Add openrct2_assert function for C

This commit is contained in:
Michał Janiszewski
2016-07-17 23:54:12 +02:00
parent 313230a9a4
commit ce03b2fa5e
2 changed files with 10 additions and 0 deletions

View File

@@ -30,6 +30,15 @@
extern "C"
{
#include "../openrct2.h"
void openrct2_assert(bool expression, const char * message, ...)
{
va_list args;
va_start(args, message);
Guard::Assert_VA(expression, message, args);
va_end(args);
}
}
namespace Guard

View File

@@ -52,6 +52,7 @@ void openrct2_dispose();
void openrct2_finish();
void openrct2_reset_object_tween_locations();
bool openrct2_setup_rct2_segment();
void openrct2_assert(bool expression, const char * message, ...);
int cmdline_run(const char **argv, int argc);