aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-12-30 16:53:51 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-12-30 16:53:51 -0300
commit5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d (patch)
treef73f22e8661399b0aa4a115671c08c240f745e0b /lstring.h
parentabf8b1cd4a798fada026b4046e9dbc08791963f2 (diff)
downloadlua-5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d.tar.gz
lua-5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d.tar.bz2
lua-5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d.zip
Scanner doesn't need to anchor reserved words
Diffstat (limited to 'lstring.h')
-rw-r--r--lstring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstring.h b/lstring.h
index 26f4b8e1..1751e043 100644
--- a/lstring.h
+++ b/lstring.h
@@ -45,7 +45,7 @@
45/* 45/*
46** test whether a string is a reserved word 46** test whether a string is a reserved word
47*/ 47*/
48#define isreserved(s) ((s)->tt == LUA_VSHRSTR && (s)->extra > 0) 48#define isreserved(s) (strisshr(s) && (s)->extra > 0)
49 49
50 50
51/* 51/*