shithub: mc

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