Golang C.lua_getmetatable类(方法)实例源码

下面列出了Golang C.lua_getmetatable 类(方法)源码代码实例,从而了解它的用法。

作者:szl    项目:golu   
// lua_getmetatable
func (L *State) GetMetaTable(index int) bool {
	return C.lua_getmetatable(L.s, C.int(index)) != 0
}

作者:halturi    项目:luaji   
// 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))
}


问题


面经


文章

微信
公众号

扫码关注公众号