aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/string_view.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-27 10:43:30 +0200
committerBad Diode <bd@badd10de.dev>2021-10-27 10:43:30 +0200
commitf0cd7a3cab56a6f8d7b4520aaa168a271a94d6d4 (patch)
tree70a5e81b14f0fe65c959d675909ee3aa471f8354 /src/bytecode/string_view.h
parent6eed0aa02c657ae97e18280a6dd9d74c84fd91d4 (diff)
downloadbdl-f0cd7a3cab56a6f8d7b4520aaa168a271a94d6d4.tar.gz
bdl-f0cd7a3cab56a6f8d7b4520aaa168a271a94d6d4.zip
Add initial implementation of locals
Diffstat (limited to 'src/bytecode/string_view.h')
-rwxr-xr-xsrc/bytecode/string_view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytecode/string_view.h b/src/bytecode/string_view.h
index 79d8305..5977ea9 100755
--- a/src/bytecode/string_view.h
+++ b/src/bytecode/string_view.h
@@ -18,6 +18,6 @@ bool sv_equal(const StringView *a, const StringView *b);
18// Write a character to the given output stream. 18// Write a character to the given output stream.
19void sv_write(const StringView *sv); 19void sv_write(const StringView *sv);
20 20
21#define STRING(STR) (StringView){(STR), sizeof(STR)} 21#define STRING(STR) (StringView){(STR), sizeof(STR) - 1}
22 22
23#endif // BDL_STRINGVIEW_H 23#endif // BDL_STRINGVIEW_H