aboutsummaryrefslogtreecommitdiff
path: root/lref.h
blob: 1d140d38b49ba473041a43bf06d6ab1f47b675ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
** $Id: lref.h,v 1.4 1999/12/14 18:33:29 roberto Exp roberto $
** reference mechanism
** See Copyright Notice in lua.h
*/

#ifndef lref_h
#define lref_h

#include "lobject.h"


#define NONEXT          -1      /* to end the free list */
#define HOLD            -2
#define COLLECTED       -3
#define LOCK            -4


struct ref {
  TObject o;
  int st;  /* can be LOCK, HOLD, COLLECTED, or next (for free list) */
};


void luaR_invalidaterefs (lua_State *L);

#endif