projects
/
lrts
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfc4697
)
scripting: Added lsl value init
author
Lukas Krickl
<lukas@krickl.dev>
Fri, 13 Mar 2026 16:48:40 +0000
(17:48 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Fri, 13 Mar 2026 16:48:40 +0000
(17:48 +0100)
src/l_lsl.c
patch
|
blob
|
history
diff --git
a/src/l_lsl.c
b/src/l_lsl.c
index 019836ca32bd52d3db0e8c29a148888f15f38d15..db8d3664d73123c42ccd3c04b529d11be410badc 100644
(file)
--- a/
src/l_lsl.c
+++ b/
src/l_lsl.c
@@
-116,6
+116,13
@@
const char* l_lsl_next_token(struct l_lsl_vm *v, const char *code,
return tokbuf;
}
+struct l_lsl_value* l_lsl_value_alloc(struct l_lsl_vm *v) {
+ struct l_lsl_value *val;
+ val = v->malloc(sizeof(*val));
+ *val = l_lsl_value_init();
+ return val;
+}
+
struct l_lsl_value l_lsl_compile_file(struct l_lsl_vm *v, const char *path) {
struct l_lsl_value val = l_lsl_value_init();
const char *src = u_file_read(path);