diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-01 13:51:34 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-06-01 13:51:34 -0300 |
| commit | fb8fa661366e15e98c60d8929feaab9e551a02f9 (patch) | |
| tree | b3eb16fcfe3eab8f4b07ccaa71c55011016ad005 /ltm.h | |
| parent | b3970649550fe8471c55bfae57aa3752ddfa97a9 (diff) | |
| download | lua-fb8fa661366e15e98c60d8929feaab9e551a02f9.tar.gz lua-fb8fa661366e15e98c60d8929feaab9e551a02f9.tar.bz2 lua-fb8fa661366e15e98c60d8929feaab9e551a02f9.zip | |
no more 'luaH_emptyobject' and comparisons of addresses of global variables
(instead, use a different kind of nil to signal the fake entry returned
when a key is not found in a table)
Diffstat (limited to 'ltm.h')
| -rw-r--r-- | ltm.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.h,v 2.35 2018/04/04 14:23:41 roberto Exp roberto $ | 2 | ** $Id: ltm.h,v 2.36 2018/05/23 14:41:20 roberto Exp roberto $ |
| 3 | ** Tag methods | 3 | ** Tag methods |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -48,7 +48,7 @@ typedef enum { | |||
| 48 | ** Test whether there is no tagmethod. | 48 | ** Test whether there is no tagmethod. |
| 49 | ** (Because tagmethods use raw accesses, the result may be an "empty" nil.) | 49 | ** (Because tagmethods use raw accesses, the result may be an "empty" nil.) |
| 50 | */ | 50 | */ |
| 51 | #define notm(tm) ttisnilorempty(tm) | 51 | #define notm(tm) ttisnil(tm) |
| 52 | 52 | ||
| 53 | 53 | ||
| 54 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ | 54 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ |
