From 422240dc1668e3c6db1302fc37afe443dd29c948 Mon Sep 17 00:00:00 2001
From: Brian Gernhardt <brian@gernhardtsoftware.com>
Date: Tue, 8 Feb 2011 11:00:39 -0500
Subject: [PATCH] Add missing ASSERT_ARGS macros
Signed-off-by: Brian Gernhardt <brian@gernhardtsoftware.com>
---
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
|
b
|
|
167 | 167 | #define ASSERT_ARGS_Parrot_gc_pool_free __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ |
168 | 168 | PARROT_ASSERT_ARG(interp) \ |
169 | 169 | , PARROT_ASSERT_ARG(pool)) |
| 170 | #define ASSERT_ARGS_Parrot_gc_pool_is_maybe_owned __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ |
| 171 | PARROT_ASSERT_ARG(pool) \ |
| 172 | , PARROT_ASSERT_ARG(ptr)) |
170 | 173 | #define ASSERT_ARGS_Parrot_gc_pool_is_owned __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ |
171 | 174 | PARROT_ASSERT_ARG(pool) \ |
172 | 175 | , PARROT_ASSERT_ARG(ptr)) |
diff --git a/src/gc/gc_gms.c b/src/gc/gc_gms.c
index ea974ba..e76274a 100644
a
|
b
|
|
435 | 435 | __attribute__nonnull__(1) |
436 | 436 | __attribute__nonnull__(2); |
437 | 437 | |
| 438 | static void gc_gms_validate_str(PARROT_INTERP, ARGIN(STRING *str)) |
| 439 | __attribute__nonnull__(1) |
| 440 | __attribute__nonnull__(2); |
| 441 | |
438 | 442 | static void gc_gms_write_barrier(PARROT_INTERP, ARGIN(PMC *pmc)) |
439 | 443 | __attribute__nonnull__(1) |
440 | 444 | __attribute__nonnull__(2); |
… |
… |
|
589 | 593 | #define ASSERT_ARGS_gc_gms_validate_pmc __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ |
590 | 594 | PARROT_ASSERT_ARG(interp) \ |
591 | 595 | , PARROT_ASSERT_ARG(pmc)) |
| 596 | #define ASSERT_ARGS_gc_gms_validate_str __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ |
| 597 | PARROT_ASSERT_ARG(interp) \ |
| 598 | , PARROT_ASSERT_ARG(str)) |
592 | 599 | #define ASSERT_ARGS_gc_gms_write_barrier __attribute__unused__ int _ASSERT_ARGS_CHECK = (\ |
593 | 600 | PARROT_ASSERT_ARG(interp) \ |
594 | 601 | , PARROT_ASSERT_ARG(pmc)) |