[svn:parrot] r48310 - trunk/src/packfile
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Wed Aug 4 08:04:54 UTC 2010
Author: plobsing
Date: Wed Aug 4 08:04:54 2010
New Revision: 48310
URL: https://trac.parrot.org/parrot/changeset/48310
Log:
use arg assert macros
Modified:
trunk/src/packfile/pf_items.c
Modified: trunk/src/packfile/pf_items.c
==============================================================================
--- trunk/src/packfile/pf_items.c Wed Aug 4 07:35:02 2010 (r48309)
+++ trunk/src/packfile/pf_items.c Wed Aug 4 08:04:54 2010 (r48310)
@@ -1214,6 +1214,7 @@
STRING *
PF_fetch_buf(PARROT_INTERP, ARGIN_NULLOK(PackFile *pf), ARGIN(const opcode_t **cursor))
{
+ ASSERT_ARGS(PF_fetch_buf)
const int wordsize = pf ? pf->header->wordsize : sizeof (opcode_t);
size_t size = PF_fetch_opcode(pf, cursor);
STRING *s = Parrot_str_new_init(interp, (const char *)*cursor, size,
@@ -1241,6 +1242,7 @@
opcode_t*
PF_store_buf(ARGOUT(opcode_t *cursor), ARGIN(const STRING *s))
{
+ ASSERT_ARGS(PF_store_buf)
const int wordsize = sizeof (opcode_t);
PARROT_ASSERT(s->encoding == Parrot_fixed_8_encoding_ptr);
@@ -1278,6 +1280,7 @@
size_t
PF_size_buf(ARGIN(const STRING *s))
{
+ ASSERT_ARGS(PF_size_buf)
if (STRING_IS_NULL(s))
return 1;
else
More information about the parrot-commits
mailing list