Permalink
Browse files

[codingstd] Add 'ASSERT_ARGS(<function_name>) in 14 locations.

  • Loading branch information...
1 parent b3563f4 commit d7428bc726a7551d650ca05fceec10542d50cce2 @jkeenan jkeenan committed Mar 8, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/packfile/pf_items.c
View
@@ -1867,6 +1867,7 @@ PARROT_CONST_FUNCTION
static INTVAL
fetch_iv_le(INTVAL w)
{
+ ASSERT_ARGS(fetch_iv_le)
#if !PARROT_BIGENDIAN
return w;
#else
@@ -1910,6 +1911,7 @@ PARROT_CONST_FUNCTION
static INTVAL
fetch_iv_be(INTVAL w)
{
+ ASSERT_ARGS(fetch_iv_be)
#if PARROT_BIGENDIAN
return w;
#else
@@ -1950,6 +1952,7 @@ PARROT_CONST_FUNCTION
static opcode_t
fetch_op_be(opcode_t w)
{
+ ASSERT_ARGS(fetch_op_be)
#if PARROT_BIGENDIAN
return w;
#else
@@ -1988,6 +1991,7 @@ PARROT_CONST_FUNCTION
static opcode_t
fetch_op_le(opcode_t w)
{
+ ASSERT_ARGS(fetch_op_le)
#if !PARROT_BIGENDIAN
return w;
#else
@@ -2036,6 +2040,7 @@ PARROT_INLINE
static void
fetch_buf_be_4(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_be_4)
#if PARROT_BIGENDIAN
memcpy(rb, b, 4);
#else
@@ -2060,6 +2065,7 @@ PARROT_INLINE
static void
fetch_buf_le_4(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_le_4)
#if !PARROT_BIGENDIAN
memcpy(rb, b, 4);
#else
@@ -2084,6 +2090,7 @@ PARROT_INLINE
static void
fetch_buf_be_8(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_be_8)
#if PARROT_BIGENDIAN
memcpy(rb, b, 8);
#else
@@ -2112,6 +2119,7 @@ PARROT_INLINE
static void
fetch_buf_le_8(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_le_8)
#if !PARROT_BIGENDIAN
memcpy(rb, b, 8);
#else
@@ -2140,6 +2148,7 @@ PARROT_INLINE
static void
fetch_buf_le_12(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_le_12)
#if !PARROT_BIGENDIAN
memcpy(rb, b, 12);
#else
@@ -2172,6 +2181,7 @@ PARROT_INLINE
static void
fetch_buf_be_12(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_be_12)
#if PARROT_BIGENDIAN
memcpy(rb, b, 12);
#else
@@ -2204,6 +2214,7 @@ PARROT_INLINE
static void
fetch_buf_le_16(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_le_16)
#if !PARROT_BIGENDIAN
memcpy(rb, b, 16);
#else
@@ -2240,6 +2251,7 @@ PARROT_INLINE
static void
fetch_buf_be_16(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_be_16)
#if PARROT_BIGENDIAN
memcpy(rb, b, 16);
#else
@@ -2276,6 +2288,7 @@ PARROT_INLINE
static void
fetch_buf_le_32(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_le_32)
#if !PARROT_BIGENDIAN
memcpy(rb, b, 32);
#else
@@ -2328,6 +2341,7 @@ PARROT_INLINE
static void
fetch_buf_be_32(ARGOUT(unsigned char *rb), ARGIN(const unsigned char *b))
{
+ ASSERT_ARGS(fetch_buf_be_32)
#if PARROT_BIGENDIAN
memcpy(rb, b, 32);
#else

0 comments on commit d7428bc

Please sign in to comment.