<div dir="ltr"><div dir="ltr">I'm sure this was explained somewhere before (even recently), <div>but I forget, and can't find anything in my usual search places.<div><br><div class="gmail_quote"><div dir="ltr">On Tue, 30 Oct 2018 at 09:02, <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
Eliot Miranda uploaded a new version of VMMaker to project VM Maker:<br>
<a href="http://source.squeak.org/VMMaker/VMMaker.oscog-eem.2479.mcz" rel="noreferrer" target="_blank">http://source.squeak.org/VMMaker/VMMaker.oscog-eem.2479.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: VMMaker.oscog-eem.2479<br>
Author: eem<br>
Time: 29 October 2018, 6:00:57.748695 pm<br>
UUID: b191888c-6777-483b-82b4-121103743ebf<br>
Ancestors: VMMaker.oscog-eem.2478<br>
<br>
Plugins:<br>
Fix slip in primitiveDirectoryDelimitor.<br>
Eliminate cCode:inSmalltalk:'s from the B3DAcceleratorPlugin<br>
<br>
=============== Diff against VMMaker.oscog-eem.2478 ===============<br><snip><br>
Item was changed:<br>
  ----- Method: B3DAcceleratorPlugin>>primitiveAllocateTexture (in category 'primitives-textures') -----<br>
  primitiveAllocateTexture<br>
        | h w d result renderer |<br>
        <export: true><br>
        interpreterProxy methodArgumentCount = 4<br>
                ifFalse:[^interpreterProxy primitiveFail].<br>
        h := interpreterProxy stackIntegerValue: 0.<br>
        w := interpreterProxy stackIntegerValue: 1.<br>
        d := interpreterProxy stackIntegerValue: 2.<br>
        renderer := interpreterProxy stackIntegerValue: 3.<br>
        interpreterProxy failed ifTrue:[^nil].<br>
+       result := self b3dxAllocateTexture: renderer _: w _: h _: d.<br>
-       result := self cCode:'b3dxAllocateTexture(renderer, w, h, d)' inSmalltalk:[-1].<br>
        result = -1 ifTrue:[^interpreterProxy primitiveFail].<br>
        interpreterProxy pop: 5. "args+rcvr"<br>
        ^interpreterProxy pushInteger: result.!<br></blockquote><div><br></div><div><br class="gmail-Apple-interchange-newline">What is the mechanism that allows cCode:inSmalltalk:'s to be replaced like above?</div><div>I half expected  "b3dxAllocateTexture:_:_:_:"</div><div>to be newly defined somewhere else in that commit.</div><div><br></div><div>cheers -ben </div></div></div></div></div></div>