aboutsummaryrefslogtreecommitdiff
path: root/lfunc.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-10-29 12:06:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-10-29 12:06:37 -0300
commit413a393e6222482f46599e138bebac162610a572 (patch)
tree181517f8ec8d56f9101de33f4891729044f244de /lfunc.h
parentba089bcb08a0efc6c26fb5c1e3c9d61c00cc012c (diff)
downloadlua-413a393e6222482f46599e138bebac162610a572.tar.gz
lua-413a393e6222482f46599e138bebac162610a572.tar.bz2
lua-413a393e6222482f46599e138bebac162610a572.zip
Stack indices changed to union's
That will allow to change pointers to offsets while reallocating the stack.
Diffstat (limited to 'lfunc.h')
-rw-r--r--lfunc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lfunc.h b/lfunc.h
index 3d296971..3be265ef 100644
--- a/lfunc.h
+++ b/lfunc.h
@@ -29,10 +29,10 @@
29#define MAXUPVAL 255 29#define MAXUPVAL 255
30 30
31 31
32#define upisopen(up) ((up)->v != &(up)->u.value) 32#define upisopen(up) ((up)->v.p != &(up)->u.value)
33 33
34 34
35#define uplevel(up) check_exp(upisopen(up), cast(StkId, (up)->v)) 35#define uplevel(up) check_exp(upisopen(up), cast(StkId, (up)->v.p))
36 36
37 37
38/* 38/*