本文整理匯總了Golang中C.lua_gc函數的典型用法代碼示例。如果您正苦於以下問題:Golang lua_gc函數的具體用法?Golang lua_gc怎麽用?Golang lua_gc使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了lua_gc函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Gc
// 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: GC
// lua_gc
func (L *State) GC(what, data int) int { return int(C.lua_gc(L.s, C.int(what), C.int(data))) }
示例3: Gc
func (vm *VM) Gc(what, data int) int {
return int(C.lua_gc(vm.globalL, C.int(what), C.int(data)))
}