Skip to content

Commit d8d5cce

Browse files
committed
Merge branch 'master' of git@github.com:parrot/parrot
2 parents 284dad3 + a94f568 commit d8d5cce

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/pmc/multisub.pmc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,20 @@ static void check_is_valid_sub(PARROT_INTERP, ARGIN(PMC * sub))
3434
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
3535
/* HEADERIZER END: static */
3636

37+
/*
38+
39+
=item C<static void check_is_valid_sub(PARROT_INTERP, PMC * sub)>
40+
41+
TK
42+
43+
=cut
44+
45+
*/
46+
3747
static void
3848
check_is_valid_sub(PARROT_INTERP, ARGIN(PMC * sub))
3949
{
50+
ASSERT_ARGS(check_is_valid_sub)
4051
STRING * const invokable_str = CONST_STRING(interp, "invokable");
4152
if (!VTABLE_does(interp, sub, invokable_str))
4253
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
@@ -50,7 +61,7 @@ pmclass MultiSub
5061
provides invokable {
5162

5263
VTABLE STRING * get_string() {
53-
// TODO: No bounds-checking. This is not safe.
64+
/* TODO: No bounds-checking. This is not safe. */
5465
PMC * const sub0 = VTABLE_get_pmc_keyed_int(INTERP, SELF, 0);
5566
STRING * const name = VTABLE_get_string(INTERP, sub0);
5667
return name;

0 commit comments

Comments
 (0)