Hello all,

In my copy of chicken (SVN, revision 5752), the way to return an object at the end of a foreign-lambda* is by using return(obj). The wiki manual, however, says that I should use C_return(obj), as in

(define my-strlen
  (foreign-lambda* int ((c-string str))
    "int n = 0;
     while(*(str++)) ++n;
     C_return(n);") )

Which of these is the canonical one? I'd be happy to change one of them (foreign-lambda* macro or wiki) to match the other.

Thanks,
Will


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to