--bcaec550b4daf4525204cdff4ca6
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hello.

Ruby 2.0 is all about "non breaking backward compatibility" right? <wink
wink>.
Anyway, I used to use this code in the ruby-prof gem to see a method is the
allocator:

if (method_id == ID_ALLOCATOR)

        result = rb_str_new2("allocate");


This fails to compile with 2.0 however:

rp_method.c:101: error: D_ALLOCATORundeclared (first use in this function)

Any help/work arounds available?

Thanks.

-r

--bcaec550b4daf4525204cdff4ca6
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Hello.<div><br><div>Ruby 2.0 is all about &quot;non breaking backward compatibility&quot; right? &lt;wink wink&gt;.</div><div>Anyway, I used to use this code in the ruby-prof gem to see a method is the allocator:<br></div>

<div><br></div><div><pre><div id="LC101" class=""><span class="">if</span> <span class="">(</span><span class="">method_id</span> <span class="">==</span> <span class="">ID_ALLOCATOR</span><span class="">)</span></div><div id="LC102" class="">

        <span class="">result</span> <span class="">=</span> <span class="">rb_str_new2</span><span class="">(</span><span class="">&quot;allocate&quot;</span><span class="">);</span></div><div id="LC102" class=""><span class=""><br>

</span></div><div id="LC102" class=""><span class=""><br></span></div><div id="LC102" class="">This fails to compile with 2.0 however:</div><div id="LC102" class=""><pre><code>rp_method.c:101: error: D_ALLOCATORundeclared (first use in this function)
</code></pre><pre>Any help/work arounds available?<br></pre><pre><code>Thanks.</code></pre><pre><code>-r</code></pre></div></pre></div></div>

--bcaec550b4daf4525204cdff4ca6--