Exemplo n.º 1
0
// luaL_newmetatable
func (L *State) NewMetaTable(tname string) bool {
	Ctname := C.CString(tname)
	defer C.free(unsafe.Pointer(Ctname))
	return C.luaL_newmetatable(L.s, Ctname) != 0
}
Exemplo n.º 2
0
//returns false if registry already contains key tname
func (L *State) NewMetaTable(tname string) bool {
	return C.luaL_newmetatable(L.s, C.CString(tname)) != 0
}