mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
28 lines
548 B
Plaintext
28 lines
548 B
Plaintext
#pragma once
|
|
|
|
#include <std/io.pat>
|
|
|
|
namespace std {
|
|
|
|
fn assert(bool condition, str message) {
|
|
if (!condition) {
|
|
std::error(std::format("assertion failed '{0}'", message));
|
|
}
|
|
};
|
|
|
|
fn assert_warn(bool condition, str message) {
|
|
if (!condition) {
|
|
std::warning(std::format("assertion failed '{0}'", message));
|
|
}
|
|
};
|
|
|
|
|
|
fn env(str name) {
|
|
return builtin::std::env(name);
|
|
};
|
|
|
|
fn sizeof_pack(auto ... pack) {
|
|
return builtin::std::sizeof_pack(pack);
|
|
};
|
|
|
|
} |