diff options
| author | ruki <[email protected]> | 2022-04-07 21:01:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-04-07 21:01:13 +0800 |
| commit | cb099dedd27ecfb5d52d5991b44de22eb86ff336 (patch) | |
| tree | 56afb156611694ee9fae6b78235c0ae3ee93680a /xmake/core/base/libc.lua | |
| parent | c48a7d959049ad14b6ea09baca682dcbaf88639c (diff) | |
add move to bytes
Diffstat (limited to 'xmake/core/base/libc.lua')
| -rw-r--r-- | xmake/core/base/libc.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/core/base/libc.lua b/xmake/core/base/libc.lua index 9aecb8af5..655a7cde0 100644 --- a/xmake/core/base/libc.lua +++ b/xmake/core/base/libc.lua @@ -74,6 +74,14 @@ function libc.memcpy(dst, src, size) end end +function libc.memmov(dst, src, size) + if ffi then + return ffi.move(dst, src, size) + else + return libc._memmov(dst, src, size) + end +end + function libc.memset(data, ch, size) if ffi then return ffi.fill(data, size, ch) |
