This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: Add comment
authorKarl Williamson <khw@cpan.org>
Tue, 16 Jan 2018 23:55:07 +0000 (16:55 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 17 Jan 2018 19:50:25 +0000 (12:50 -0700)
handy.h

diff --git a/handy.h b/handy.h
index 8e1d8f5..12d73b9 100644 (file)
--- 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)))