(MOD) Defined 1 more macro "cast".

This commit is contained in:
2024-06-26 17:20:36 +08:00
parent 8870e5e7db
commit a63063de42
2 changed files with 5 additions and 1 deletions

View File

@@ -61,6 +61,9 @@
/* Allows different macros using "_" nested with each other. */
# define nest(v1, v2, b) { clone(v1, v2) b }
/* Cast Var "var" into builtin type in C specified with "type". */
# define cast(var, type) (*(type *)var.addr)
// # define lambda(param, body, capfmt, ...) {\
// /* Duplicate everything from cap. */\
// va_list ptr;\