From da84e7e731de39ff385ae675a023ddcb9c58d06a Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 26 Oct 2021 09:56:18 +0200 Subject: Add support for lambda functions --- src/bytecode/string_view.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bytecode/string_view.h') diff --git a/src/bytecode/string_view.h b/src/bytecode/string_view.h index 64c8d8e..79d8305 100755 --- a/src/bytecode/string_view.h +++ b/src/bytecode/string_view.h @@ -18,4 +18,6 @@ bool sv_equal(const StringView *a, const StringView *b); // Write a character to the given output stream. void sv_write(const StringView *sv); +#define STRING(STR) (StringView){(STR), sizeof(STR)} + #endif // BDL_STRINGVIEW_H -- cgit v1.2.1