File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,20 @@ static void check_is_valid_sub(PARROT_INTERP, ARGIN(PMC * sub))
34
34
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
35
35
/* HEADERIZER END: static */
36
36
37
+ /*
38
+
39
+ =item C<static void check_is_valid_sub(PARROT_INTERP, PMC * sub)>
40
+
41
+ TK
42
+
43
+ =cut
44
+
45
+ */
46
+
37
47
static void
38
48
check_is_valid_sub(PARROT_INTERP, ARGIN(PMC * sub))
39
49
{
50
+ ASSERT_ARGS(check_is_valid_sub)
40
51
STRING * const invokable_str = CONST_STRING(interp, "invokable");
41
52
if (!VTABLE_does(interp, sub, invokable_str))
42
53
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
@@ -50,7 +61,7 @@ pmclass MultiSub
50
61
provides invokable {
51
62
52
63
VTABLE STRING * get_string() {
53
- // TODO: No bounds-checking. This is not safe.
64
+ /* TODO: No bounds-checking. This is not safe. */
54
65
PMC * const sub0 = VTABLE_get_pmc_keyed_int(INTERP, SELF, 0);
55
66
STRING * const name = VTABLE_get_string(INTERP, sub0);
56
67
return name;
You can’t perform that action at this time.
0 commit comments