1
0
mirror of https://github.com/lua/lua.git synced 2025-01-28 06:03:00 +08:00
lua/lref.h

28 lines
473 B
C
Raw Normal View History

/*
2000-02-08 14:39:42 -02:00
** $Id: lref.h,v 1.5 1999/12/27 17:33:22 roberto Exp roberto $
1999-12-27 15:33:22 -02:00
** 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
2000-02-08 14:39:42 -02:00
struct Ref {
TObject o;
int st; /* can be LOCK, HOLD, COLLECTED, or next (for free list) */
};
void luaR_invalidaterefs (lua_State *L);
#endif