chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Bug fix for bind 1.5.2


From: Daniel Leslie
Subject: [Chicken-users] Bug fix for bind 1.5.2
Date: Sun, 30 Mar 2014 13:06:29 -0700

The following should fix passing objects by reference in member functions:

*** ./bind/bind-translator.scm    2014-03-30 12:49:46.902558238 -0700
--- ../bind/bind-translator.scm    2014-03-30 12:48:47.290262641 -0700
***************
*** 1298,1303 ****
--- 1298,1304 ----
        [('const t) (rec t)]
        [('function . _) '<pointer>]
        [('instance _ c) c]
+       [('instance-ref _ c) c]
        [((or 'c-pointer 'ref) x)
         (if io
         (rec x)


I can't take credit for this, I lifted it from here:

https://github.com/kristianlm/chicken-bind/commit/0e093935560069321ff5ecf39382978166f3d28c#commitcomment-5846633

Example of failing code:
echo "class Foo {}; class Bar { public: void foo(Foo & foo); }; " | chicken-bind - -o -

-Dan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]