mirror of https://github.com/lua/lua.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
473 B
27 lines
473 B
/*
|
|
** $Id: lref.h,v 1.5 1999/12/27 17:33:22 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
|
|
|