summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-01-16 16:55:07 -0700
committerKarl Williamson <khw@cpan.org>2018-01-17 12:50:25 -0700
commitbdd1531dd1b6b698eaa4f6ba684bfd398f5800ef (patch)
tree9c737f5f3863029ee651b0ecf99f82535f3e3898 /handy.h
parentb3b93dfe6ca804dfa40f397bc1d97b5fb3aff0b6 (diff)
downloadperl-bdd1531dd1b6b698eaa4f6ba684bfd398f5800ef.tar.gz
handy.h: Add comment
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index 8e1d8f5435..12d73b9087 100644
--- a/handy.h
+++ b/handy.h
@@ -2433,6 +2433,7 @@ void Perl_mem_log_del_sv(const SV *sv, const char *filename, const int linenumbe
#define Copy(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), (void)memcpy((char*)(d),(const char*)(s), (n) * sizeof(t)))
#define Zero(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), (void)memzero((char*)(d), (n) * sizeof(t)))
+/* Like above, but returns a pointer to 'd' */
#define MoveD(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), memmove((char*)(d),(const char*)(s), (n) * sizeof(t)))
#define CopyD(s,d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), perl_assert_ptr(s), memcpy((char*)(d),(const char*)(s), (n) * sizeof(t)))
#define ZeroD(d,n,t) (MEM_WRAP_CHECK_(n,t) perl_assert_ptr(d), memzero((char*)(d), (n) * sizeof(t)))