shithub: mc

ref: 0b0fb103248ec7b12b3a2b94d88b1fe7a0b4403e
dir: /lib/std/slcp.myr/

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

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 castto(byte#), b castto(byte#), a.len * sizeof(@a))
}