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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user