1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 23:17:45 +00:00

Get rid of SERENITY macro since the compiler already defines __serenity__

This makes it a bit easier to use AK templates out-of-tree.
This commit is contained in:
Andreas Kling 2019-04-20 12:58:02 +02:00
parent 6aead8998a
commit 301a269ca0
27 changed files with 39 additions and 60 deletions

View file

@ -3,7 +3,11 @@
#ifdef KERNEL
#include <Kernel/Assertions.h>
#else
#include <LibC/assert.h>
#include <assert.h>
#ifndef __serenity__
#define ASSERT assert
#define ASSERT_NOT_REACHED assert(false)
#endif
#endif
namespace AK {