summaryrefslogtreecommitdiff
path: root/lua/lgc.h
blob: d6542797e3313b69556033bad2d3c78a8fc12285 (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
28
29
30
/*
** $Id: lgc.h,v 1.3 2004/03/23 05:09:14 jbj Exp $
** Garbage Collector
** See Copyright Notice in lua.h
*/

#ifndef lgc_h
#define lgc_h


#include "lobject.h"


#define luaC_checkGC(L) { lua_assert(!(L->ci->state & CI_CALLING)); \
	if (G(L)->nblocks >= G(L)->GCthreshold) luaC_collectgarbage(L); }


size_t luaC_separateudata (lua_State *L)
	/*@modifies L @*/;
void luaC_callGCTM (lua_State *L)
	/*@modifies L @*/;
void luaC_sweep (lua_State *L, int all)
	/*@modifies L @*/;
void luaC_collectgarbage (lua_State *L)
	/*@modifies L @*/;
void luaC_link (lua_State *L, GCObject *o, lu_byte tt)
	/*@modifies L, o @*/;


#endif