diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-26 09:45:51 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-01-26 09:45:51 -0200 |
| commit | bce6572579a7e6c7a96895d9280396b3b33b8f3f (patch) | |
| tree | a937d0366ae9d9e37e6320b347ec463f337ceb1b /lstate.h | |
| parent | a53d9b66ca6247818acaf41e28cdf123082a272b (diff) | |
| download | lua-bce6572579a7e6c7a96895d9280396b3b33b8f3f.tar.gz lua-bce6572579a7e6c7a96895d9280396b3b33b8f3f.tar.bz2 lua-bce6572579a7e6c7a96895d9280396b3b33b8f3f.zip | |
new macros + new names to facilitate compilation of threaded version
Diffstat (limited to 'lstate.h')
| -rw-r--r-- | lstate.h | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.h,v 1.46 2001/01/24 15:45:33 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 1.47 2001/01/25 16:45:36 roberto Exp roberto $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -15,8 +15,8 @@ | |||
| 15 | 15 | ||
| 16 | #ifdef LUA_DEBUG | 16 | #ifdef LUA_DEBUG |
| 17 | extern int islocked; | 17 | extern int islocked; |
| 18 | #define LUA_ENTRY lua_assert(islocked++ == 0) | 18 | #define LUA_LOCK lua_assert(islocked++ == 0) |
| 19 | #define LUA_EXIT lua_assert(--islocked == 0) | 19 | #define LUA_UNLOCK lua_assert(--islocked == 0) |
| 20 | #endif | 20 | #endif |
| 21 | 21 | ||
| 22 | 22 | ||
| @@ -24,12 +24,12 @@ extern int islocked; | |||
| 24 | ** macros that control all entries and exits from Lua core machine | 24 | ** macros that control all entries and exits from Lua core machine |
| 25 | ** (mainly for thread syncronization) | 25 | ** (mainly for thread syncronization) |
| 26 | */ | 26 | */ |
| 27 | #ifndef LUA_ENTRY | 27 | #ifndef LUA_LOCK |
| 28 | #define LUA_ENTRY | 28 | #define LUA_LOCK |
| 29 | #endif | 29 | #endif |
| 30 | 30 | ||
| 31 | #ifndef LUA_EXIT | 31 | #ifndef LUA_UNLOCK |
| 32 | #define LUA_EXIT | 32 | #define LUA_UNLOCK |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | 35 | ||
