// 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 }
//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 }