Beispiel #1
0
Datei: lua.go Projekt: szll/golua
// lua_getmetatable
func (L *State) GetMetaTable(index int) bool {
	return C.lua_getmetatable(L.s, C.int(index)) != 0
}
Beispiel #2
0
// 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))
}