[macruby-changes] [2092] MacRuby/branches/experimental/error.c
source_changes at macosforge.org
source_changes at macosforge.org
Sun Jul 26 20:49:59 PDT 2009
Revision: 2092
http://trac.macosforge.org/projects/ruby/changeset/2092
Author: lsansonetti at apple.com
Date: 2009-07-26 20:49:59 -0700 (Sun, 26 Jul 2009)
Log Message:
-----------
ported Kernel#warn the new runtime API
Modified Paths:
--------------
MacRuby/branches/experimental/error.c
Modified: MacRuby/branches/experimental/error.c
===================================================================
--- MacRuby/branches/experimental/error.c 2009-07-27 03:47:40 UTC (rev 2091)
+++ MacRuby/branches/experimental/error.c 2009-07-27 03:49:59 UTC (rev 2092)
@@ -189,7 +189,7 @@
*/
static VALUE
-rb_warn_m(VALUE self, VALUE mesg)
+rb_warn_m(VALUE self, SEL sel, VALUE mesg)
{
if (!NIL_P(ruby_verbose)) {
rb_io_write(rb_stderr, (SEL)0, mesg);
@@ -1104,7 +1104,7 @@
rb_mErrno = rb_define_module("Errno");
rb_objc_define_method(*(VALUE *)rb_mErrno, "const_missing", errno_missing, 1);
- rb_define_global_function("warn", rb_warn_m, 1);
+ rb_objc_define_method(rb_mKernel, "warn", rb_warn_m, 1);
}
void
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090726/b0bc34ec/attachment.html>
More information about the macruby-changes
mailing list