diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-18 09:41:35 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-04-18 09:41:35 -0300 |
| commit | e7ffb1b5018f936662875da3597d8b47571a1582 (patch) | |
| tree | 1b2a1bf082349e2936debbccee7b2b930b6d42f6 | |
| parent | c066ac10a99736fff5ebaaf70daf7978f3910692 (diff) | |
| download | lua-e7ffb1b5018f936662875da3597d8b47571a1582.tar.gz lua-e7ffb1b5018f936662875da3597d8b47571a1582.tar.bz2 lua-e7ffb1b5018f936662875da3597d8b47571a1582.zip | |
macro LUA_USE_LONGJMP allows choosing longjmp when compiling Lua as
C++ code
| -rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.c,v 2.83 2010/04/08 17:16:46 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.84 2010/04/13 20:48:12 roberto Exp roberto $ |
| 3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -48,7 +48,7 @@ | |||
| 48 | */ | 48 | */ |
| 49 | #if !defined(LUAI_THROW) | 49 | #if !defined(LUAI_THROW) |
| 50 | 50 | ||
| 51 | #if defined(__cplusplus) | 51 | #if defined(__cplusplus) && !defined(LUA_USE_LONGJMP) |
| 52 | /* C++ exceptions */ | 52 | /* C++ exceptions */ |
| 53 | #define LUAI_THROW(L,c) throw(c) | 53 | #define LUAI_THROW(L,c) throw(c) |
| 54 | #define LUAI_TRY(L,c,a) \ | 54 | #define LUAI_TRY(L,c,a) \ |
