[svn:parrot] r42318 - trunk/src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Sat Nov 7 07:16:27 UTC 2009
Author: NotFound
Date: Sat Nov 7 07:16:25 2009
New Revision: 42318
URL: https://trac.parrot.org/parrot/changeset/42318
Log:
show the method name in 'Null PMC access in find_method' messages
Modified:
trunk/src/pmc/null.pmc
Modified: trunk/src/pmc/null.pmc
==============================================================================
--- trunk/src/pmc/null.pmc Sat Nov 7 05:45:01 2009 (r42317)
+++ trunk/src/pmc/null.pmc Sat Nov 7 07:16:25 2009 (r42318)
@@ -70,6 +70,22 @@
return PMC_IS_NULL(value);
}
+/*
+
+=item C<PMC *find_method(STRING *method_name)>
+
+=cut
+
+Gives a more informative message than the automaticaaly generated version.
+
+*/
+
+ VTABLE PMC *find_method(STRING *method_name) {
+ Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_NULL_REG_ACCESS,
+ "Null PMC access in find_method('%Ss')",
+ method_name);
+ }
+
}
/*
More information about the parrot-commits
mailing list