shithub: mc

ref: b31626248ea64c23d2020846e2cac1c751348b61
dir: /lib/std/slcp.myr/

View raw version
use "die"
use "types"
use "memops"

pkg std =
	generic slcp : (a : @a[:], b : @a[:] -> void)
;;

generic slcp = {a : @a[:], b : @a[:]
	iassert(a.len == b.len, "arguments to slcp() must be of equal length\n")
	memblit((a : byte#), (b : byte#), a.len * sizeof(@a))
}