aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-04 10:37:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-04 10:37:10 -0300
commitd96f088a267e3ee9db938fd742dae51fb9bfb793 (patch)
tree119e95b46bd28095efa772e04ebfcc9ad19618cd /llimits.h
parentd8be9a63260134afb7792cbcd614b9640803b233 (diff)
downloadlua-d96f088a267e3ee9db938fd742dae51fb9bfb793.tar.gz
lua-d96f088a267e3ee9db938fd742dae51fb9bfb793.tar.bz2
lua-d96f088a267e3ee9db938fd742dae51fb9bfb793.zip
'lua_lock' and similars should be hard to use
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index c90680a7..c63b6853 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.64 2005/03/08 20:10:05 roberto Exp roberto $ 2** $Id: llimits.h,v 1.65 2005/03/09 16:28:07 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -93,4 +93,14 @@ typedef lu_int32 Instruction;
93#endif 93#endif
94 94
95 95
96#ifndef lua_lock
97#define lua_lock(L) ((void) 0)
98#define lua_unlock(L) ((void) 0)
99#endif
100
101#ifndef luai_threadyield
102#define luai_threadyield(L) {lua_unlock(L); lua_lock(L);}
103#endif
104
105
96#endif 106#endif