macro LUA_USE_LONGJMP allows choosing longjmp when compiling Lua as

C++ code
This commit is contained in:
Roberto Ierusalimschy 2010-04-18 09:41:35 -03:00
parent c066ac10a9
commit e7ffb1b501
1 changed files with 2 additions and 2 deletions

4
ldo.c
View File

@ -1,5 +1,5 @@
/* /*
** $Id: ldo.c,v 2.83 2010/04/08 17:16:46 roberto Exp roberto $ ** $Id: ldo.c,v 2.84 2010/04/13 20:48:12 roberto Exp roberto $
** Stack and Call structure of Lua ** Stack and Call structure of Lua
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -48,7 +48,7 @@
*/ */
#if !defined(LUAI_THROW) #if !defined(LUAI_THROW)
#if defined(__cplusplus) #if defined(__cplusplus) && !defined(LUA_USE_LONGJMP)
/* C++ exceptions */ /* C++ exceptions */
#define LUAI_THROW(L,c) throw(c) #define LUAI_THROW(L,c) throw(c)
#define LUAI_TRY(L,c,a) \ #define LUAI_TRY(L,c,a) \