diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-04-23 18:00:23 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-04-23 18:00:23 -0300 |
| commit | ae23e726018bd31a25c1279600328d90207ec81c (patch) | |
| tree | 475b1d0fff4886a96b4f282cade8adcb69fc6397 /lvm.c | |
| parent | 4c5d5063a54c0088729b16fb25a333f0f9f836b0 (diff) | |
| download | lua-ae23e726018bd31a25c1279600328d90207ec81c.tar.gz lua-ae23e726018bd31a25c1279600328d90207ec81c.tar.bz2 lua-ae23e726018bd31a25c1279600328d90207ec81c.zip | |
new macro 'setnilvalue2s'
Diffstat (limited to 'lvm.c')
| -rw-r--r-- | lvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -303,7 +303,7 @@ lu_byte luaV_finishget (lua_State *L, const TValue *t, TValue *key, | |||
| 303 | else { /* 't' is a table */ | 303 | else { /* 't' is a table */ |
| 304 | tm = fasttm(L, hvalue(t)->metatable, TM_INDEX); /* table's metamethod */ | 304 | tm = fasttm(L, hvalue(t)->metatable, TM_INDEX); /* table's metamethod */ |
| 305 | if (tm == NULL) { /* no metamethod? */ | 305 | if (tm == NULL) { /* no metamethod? */ |
| 306 | setnilvalue(s2v(val)); /* result is nil */ | 306 | setnilvalue2s(val); /* result is nil */ |
| 307 | return LUA_VNIL; | 307 | return LUA_VNIL; |
| 308 | } | 308 | } |
| 309 | /* else will try the metamethod */ | 309 | /* else will try the metamethod */ |
