aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-01 13:52:54 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-12-01 13:52:54 -0200
commit12dacd3c0e2fe29542520101b19a43d98aea4081 (patch)
treeb1473e47f158f23b487ae20c158b43fe5e1aabfc /luaconf.h
parent23b38176a7ad8d8f830727bcee1669473cf3c1c1 (diff)
downloadlua-12dacd3c0e2fe29542520101b19a43d98aea4081.tar.gz
lua-12dacd3c0e2fe29542520101b19a43d98aea4081.tar.bz2
lua-12dacd3c0e2fe29542520101b19a43d98aea4081.zip
added an `L' parameter to macros L_TRY & L_THROW (someone may need it).
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/luaconf.h b/luaconf.h
index 86dac868..8c3aa080 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.17 2004/11/24 18:55:56 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.18 2004/12/01 15:50:18 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -234,14 +234,14 @@
234#ifndef __cplusplus 234#ifndef __cplusplus
235/* default handling with long jumps */ 235/* default handling with long jumps */
236#include <setjmp.h> 236#include <setjmp.h>
237#define L_THROW(c) longjmp((c)->b, 1) 237#define L_THROW(L,c) longjmp((c)->b, 1)
238#define L_TRY(c,a) if (setjmp((c)->b) == 0) { a } 238#define L_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
239#define l_jmpbuf jmp_buf 239#define l_jmpbuf jmp_buf
240 240
241#else 241#else
242/* C++ exceptions */ 242/* C++ exceptions */
243#define L_THROW(c) throw(c) 243#define L_THROW(L,c) throw(c)
244#define L_TRY(c,a) try { a } catch(...) \ 244#define L_TRY(L,c,a) try { a } catch(...) \
245 { if ((c)->status == 0) (c)->status = -1; } 245 { if ((c)->status == 0) (c)->status = -1; }
246#define l_jmpbuf int /* dummy variable */ 246#define l_jmpbuf int /* dummy variable */
247#endif 247#endif