@ -1,11 +1,21 @@
#include <stdio.h>
#ifdef WEB
#include <assert.h>
#endif
static inline void assert_impl(bool cond, const char *expression)
{
if(!cond)
fprintf(stderr, "Assertion failed: %s\n", expression);
assert(false);
#elif defined(DESKTOP)
__debugbreak();
#else
#error "Don't know how to assert for current platform configuration"
}
#ifdef assert
@ -1,5 +1,6 @@
#include <stdbool.h>
#define DESKTOP
#include "better_assert.h"
#include "buff.h"
@ -2,12 +2,18 @@
// you will die someday
#define SOKOL_IMPL
#if defined(WIN32) || defined(_WIN32)
#define WINDOWS
#define SOKOL_D3D11
#if defined(__EMSCRIPTEN__)
#define WEB
#define SOKOL_GLES2
#ifdef WINDOWS
#include <Windows.h>
#include <processthreadsapi.h>
@ -15,6 +21,7 @@
#include "sokol_app.h"
#include "sokol_gfx.h"