From b82242d4c493191d543fe5784b4d884e0cba9809 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Jan 2001 13:58:50 -0200 Subject: detail --- lobject.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 008b56ab..79600a87 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 1.87 2001/01/19 13:20:30 roberto Exp roberto $ +** $Id: lobject.h,v 1.88 2001/01/25 16:45:36 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -199,6 +199,11 @@ typedef struct Hash { #define ismarked(x) ((x)->mark != (x)) +/* +** "module" operation (size is always a power of 2) */ +#define lmod(s,size) ((int)((s) & ((size)-1))) + + /* ** informations about a call (for debugging) */ -- cgit v1.2.3-55-g6feb