From 422240dc1668e3c6db1302fc37afe443dd29c948 Mon Sep 17 00:00:00 2001 From: Brian Gernhardt Date: Tue, 8 Feb 2011 11:00:39 -0500 Subject: [PATCH] Add missing ASSERT_ARGS macros Signed-off-by: Brian Gernhardt --- src/gc/fixed_allocator.h | 3 +++ src/gc/gc_gms.c | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/gc/fixed_allocator.h b/src/gc/fixed_allocator.h index 51df42f..43f9547 100644 --- a/src/gc/fixed_allocator.h +++ b/src/gc/fixed_allocator.h @@ -167,6 +167,9 @@ Pool_Allocator * Parrot_gc_pool_new(SHIM_INTERP, size_t object_size); #define ASSERT_ARGS_Parrot_gc_pool_free __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(interp) \ , PARROT_ASSERT_ARG(pool)) +#define ASSERT_ARGS_Parrot_gc_pool_is_maybe_owned __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ + PARROT_ASSERT_ARG(pool) \ + , PARROT_ASSERT_ARG(ptr)) #define ASSERT_ARGS_Parrot_gc_pool_is_owned __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(pool) \ , PARROT_ASSERT_ARG(ptr)) diff --git a/src/gc/gc_gms.c b/src/gc/gc_gms.c index ea974ba..e76274a 100644 --- a/src/gc/gc_gms.c +++ b/src/gc/gc_gms.c @@ -435,6 +435,10 @@ static void gc_gms_validate_pmc(PARROT_INTERP, ARGIN(PMC *pmc)) __attribute__nonnull__(1) __attribute__nonnull__(2); +static void gc_gms_validate_str(PARROT_INTERP, ARGIN(STRING *str)) + __attribute__nonnull__(1) + __attribute__nonnull__(2); + static void gc_gms_write_barrier(PARROT_INTERP, ARGIN(PMC *pmc)) __attribute__nonnull__(1) __attribute__nonnull__(2); @@ -589,6 +593,9 @@ static int pobj2gen(ARGIN(PObj *pmc)) #define ASSERT_ARGS_gc_gms_validate_pmc __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(interp) \ , PARROT_ASSERT_ARG(pmc)) +#define ASSERT_ARGS_gc_gms_validate_str __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ + PARROT_ASSERT_ARG(interp) \ + , PARROT_ASSERT_ARG(str)) #define ASSERT_ARGS_gc_gms_write_barrier __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ PARROT_ASSERT_ARG(interp) \ , PARROT_ASSERT_ARG(pmc)) -- 1.7.4.rc3.268.g2af8b