[svn:parrot] r48325 - trunk/src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Thu Aug 5 06:30:29 UTC 2010
Author: NotFound
Date: Thu Aug 5 06:30:27 2010
New Revision: 48325
URL: https://trac.parrot.org/parrot/changeset/48325
Log:
implement Default.init_int
Modified:
trunk/src/pmc/default.pmc
Modified: trunk/src/pmc/default.pmc
==============================================================================
--- trunk/src/pmc/default.pmc Thu Aug 5 02:11:01 2010 (r48324)
+++ trunk/src/pmc/default.pmc Thu Aug 5 06:30:27 2010 (r48325)
@@ -360,6 +360,23 @@
/*
+=item C<void init_int(INTVAL initvalue)>
+
+Calls C<init()> and C<set_integer_native(initvalue)>.
+Default implementation to allow more usages of init_int without having to
+implement it everywhere.
+
+=cut
+
+*/
+
+ VTABLE void init_int(INTVAL initvalue) {
+ SELF.init();
+ SELF.set_integer_native(initvalue);
+ }
+
+/*
+
=item C<void destroy()>
Does nothing.
More information about the parrot-commits
mailing list