'lua_lock' and similars should be hard to use

This commit is contained in:
Roberto Ierusalimschy
2005-08-04 10:37:10 -03:00
parent d8be9a6326
commit d96f088a26
2 changed files with 13 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.64 2005/03/08 20:10:05 roberto Exp roberto $
** $Id: llimits.h,v 1.65 2005/03/09 16:28:07 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -93,4 +93,14 @@ typedef lu_int32 Instruction;
#endif
#ifndef lua_lock
#define lua_lock(L) ((void) 0)
#define lua_unlock(L) ((void) 0)
#endif
#ifndef luai_threadyield
#define luai_threadyield(L) {lua_unlock(L); lua_lock(L);}
#endif
#endif