- $defined(#hash) will not check the internal expression, just that #hash exists.

- Added optional macro arguments using `macro foo(int x = ...)` which can be checked using `$defined(x)`.
- Supplemental `roundeven` has a normal implementation.
This commit is contained in:
Christoffer Lerno
2025-08-29 11:23:39 +02:00
parent 0178a44b3c
commit ca2fabc9f9
7 changed files with 147 additions and 53 deletions

View File

@@ -6218,6 +6218,7 @@ static inline void llvm_emit_macro_block(GenContext *c, BEValue *be_value, Expr
{
// Skip vararg
if (!val) continue;
if (val->var.no_init && val->var.defaulted) continue;
// In case we have a constant, we never do an emit. The value is already folded.
switch (val->var.kind)
{