mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
Canonicalize the path used by sh.
With a bunch of LibC work to support the feature. LibC now initializes AK::StringImpl by default. It's now fine to use AK in LibC/Userland! :^)
This commit is contained in:
parent
88ad59bfb1
commit
e904f193c1
15 changed files with 170 additions and 24 deletions
14
LibC/assert.h
Normal file
14
LibC/assert.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
extern "C" {
|
||||
|
||||
void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func);
|
||||
|
||||
#define assert(expr) (static_cast<bool>(expr) ? (void)0 : __assertion_failed(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__))
|
||||
#define CRASH() do { asm volatile("ud2"); } while(0)
|
||||
#define ASSERT assert
|
||||
#define RELEASE_ASSERT assert
|
||||
#define ASSERT_NOT_REACHED() assert(false)
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue