Example #1
0
// Controls the garbage collector.
//
// This function performs several tasks, according to the value of the
// parameter what, which must be one of the luajit.GC* constants.
func (s *State) Gc(what, data int) int {
	return int(C.lua_gc(s.l, C.int(what), C.int(data)))
}
Example #2
0
File: lua.go Project: szll/golua
// lua_gc
func (L *State) GC(what, data int) int { return int(C.lua_gc(L.s, C.int(what), C.int(data))) }
Example #3
0
File: lua.go Project: hxyxj/goinfi
func (vm *VM) Gc(what, data int) int {
	return int(C.lua_gc(vm.globalL, C.int(what), C.int(data)))
}