Пример #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)))
}
Пример #2
0
Файл: lua.go Проект: 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))) }
Пример #3
0
func (vm *VM) Gc(what, data int) int {
	return int(C.lua_gc(vm.globalL, C.int(what), C.int(data)))
}