From 262245b0c1a3d5d823fd36c2b688121649fd9e18 Mon Sep 17 00:00:00 2001 From: tarui Date: Wed, 26 Nov 2014 11:50:55 +0000 Subject: [PATCH] * ext/continuation/continuation.c (Init_continuation): obsolete callcc. first step of [Feature #10548]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/continuation/continuation.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index b2c764082f..6739c78123 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 26 20:47:28 2014 Masaya Tarui + + * ext/continuation/continuation.c (Init_continuation): obsolete callcc. + first step of [Feature #10548]. + Wed Nov 26 19:57:54 2014 Koichi Sasada * test/ruby/test_gc.rb (test_latest_gc_info): do test separately diff --git a/ext/continuation/continuation.c b/ext/continuation/continuation.c index ae69b66cd8..71b52db539 100644 --- a/ext/continuation/continuation.c +++ b/ext/continuation/continuation.c @@ -1,8 +1,11 @@ +#include "ruby/ruby.h" + void ruby_Init_Continuation_body(void); void Init_continuation(void) { + rb_warn("callcc is obsolete; use Fiber instead"); ruby_Init_Continuation_body(); }