Example #1
0
//TODO: decide if we actually want this renamed
func TypeError(L *State, narg int, tname string) int {
	Ctname := C.CString(tname)
	ret := int(C.luaL_typerror(L.s, C.int(narg), Ctname))
	C.free(unsafe.Pointer(Ctname))
	return ret
}
Example #2
0
//TODO: decide if we actually want this renamed
func TypeError(L *State, narg int, tname string) int {
	return int(C.luaL_typerror(L.s, C.int(narg), C.CString(tname)))
}