示例#1
0
文件: lua.go 项目: szll/golua
// lua_getmetatable
func (L *State) GetMetaTable(index int) bool {
	return C.lua_getmetatable(L.s, C.int(index)) != 0
}
示例#2
0
文件: state.go 项目: halturin/luajit
// Pushes onto the stack the metatable associated with name tname in the
// registry.
func (s *State) Getmetatable(index int) {
	C.lua_getmetatable(s.l, C.int(index))
}