diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-23 16:19:57 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-23 16:19:57 -0200 |
| commit | b1b0c219f5255a0cd0921ebc0a77a81f99b72532 (patch) | |
| tree | 7cb4d9cbbdb1309b94794eb75694b02f2b08f75a /lapi.h | |
| parent | be3212de781786c0a68365dee1d3510407b5c325 (diff) | |
| download | lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.tar.gz lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.tar.bz2 lua-b1b0c219f5255a0cd0921ebc0a77a81f99b72532.zip | |
new ttypes to distinguish between C closures and Lua closures.
Diffstat (limited to 'lapi.h')
| -rw-r--r-- | lapi.h | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.h,v 1.10 1999/12/02 16:24:45 roberto Exp roberto $ | 2 | ** $Id: lapi.h,v 1.11 1999/12/14 18:33:29 roberto Exp roberto $ |
| 3 | ** Auxiliary functions from Lua API | 3 | ** Auxiliary functions from Lua API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -11,7 +11,11 @@ | |||
| 11 | #include "lobject.h" | 11 | #include "lobject.h" |
| 12 | 12 | ||
| 13 | 13 | ||
| 14 | lua_Type luaA_normalizedtype (const TObject *o); | 14 | extern const lua_Type luaA_normtype[]; |
| 15 | |||
| 16 | #define luaA_normalizedtype(o) (luaA_normtype[-ttype(o)]) | ||
| 17 | |||
| 18 | |||
| 15 | void luaA_setnormalized (TObject *d, const TObject *s); | 19 | void luaA_setnormalized (TObject *d, const TObject *s); |
| 16 | void luaA_checkCparams (lua_State *L, int nParams); | 20 | void luaA_checkCparams (lua_State *L, int nParams); |
| 17 | const TObject *luaA_protovalue (const TObject *o); | 21 | const TObject *luaA_protovalue (const TObject *o); |
