Skip to content

Commit

Permalink
adding headerizer args
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed May 14, 2011
1 parent 15fdf60 commit 2ff3c93
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions include/parrot/nci.h
Expand Up @@ -54,8 +54,11 @@ PMC * Parrot_nci_parse_signature(PARROT_INTERP, ARGIN(STRING *sig_str))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

STRING * Parrot_nci_describe_sig(PARROT_INTERP, PMC *sig)
__attribute__nonnull__(1);
PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
STRING * Parrot_nci_describe_sig(PARROT_INTERP, ARGIN(PMC *sig))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

void Parrot_nci_sig_to_pcc(PARROT_INTERP,
ARGIN(PMC *sig_pmc),
Expand All @@ -72,7 +75,8 @@ void Parrot_nci_sig_to_pcc(PARROT_INTERP,
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(sig_str))
#define ASSERT_ARGS_Parrot_nci_describe_sig __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp))
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(sig))
#define ASSERT_ARGS_Parrot_nci_sig_to_pcc __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(interp) \
, PARROT_ASSERT_ARG(sig_pmc) \
Expand Down
4 changes: 3 additions & 1 deletion src/nci/signatures.c
Expand Up @@ -245,8 +245,10 @@ Provide a descriptive string for a signature.
*/

PARROT_WARN_UNUSED_RESULT
PARROT_CANNOT_RETURN_NULL
STRING *
Parrot_nci_describe_sig(PARROT_INTERP, PMC *sig)
Parrot_nci_describe_sig(PARROT_INTERP, ARGIN(PMC *sig))
{
ASSERT_ARGS(Parrot_nci_describe_sig)

Expand Down

0 comments on commit 2ff3c93

Please sign in to comment.