Exemplo n.º 1
0
// Pops a table from the stack and sets it as the new metatable for the
// value at the given valid index.
func (this *State) Setmetatable(index int) int {
	return int(C.lua_setmetatable(this.luastate, C.int(index)))
}
Exemplo n.º 2
0
Arquivo: lua.go Projeto: szll/golua
// lua_setmetatable
func (L *State) SetMetaTable(index int) {
	C.lua_setmetatable(L.s, C.int(index))
}
Exemplo n.º 3
0
// Pops a table from the stack and sets it as the new metatable for the
// value at the given valid index.
func (s *State) Setmetatable(index int) int {
	return int(C.lua_setmetatable(s.l, C.int(index)))
}