Giter Club home page Giter Club logo

Comments (5)

rafzi avatar rafzi commented on May 7, 2024

I would offer to send a pull request for the core code, but it's not really possible to fix the problem for users that are not notified about this change, because they will need to check the return value of a function that previously did not return a value.

Affected APIs would be:

rcAddSpan
rcAddSpans
rcRasterizeTriangle
rcRasterizeTriangles (3 overloads)

They all have a "ctx" parameter for error reporting though, so it would only affect the return value change from void to bool.

from recastnavigation.

memononen avatar memononen commented on May 7, 2024

Hi,

I think it is ok to add return bool value and add an error message on those
functions to indicate that they have failed. It should not break any
current code, but allows people to catch it if needed.

--mikko

On Mon, Jun 22, 2015 at 6:50 PM, rafzi [email protected] wrote:

I would offer to send a pull request for the core code, but it's not
really possible to fix the problem for users that are not notified about
this change, because they will need to check the return value of a function
that previously did not return a value.

Affected APIs would be:

rcAddSpan
rcAddSpans
rcRasterizeTriangle
rcRasterizeTriangles (3 overloads)

They all have a "ctx" parameter for error reporting though, so it would
only affect the return value change from void to bool.


Reply to this email directly or view it on GitHub
#100 (comment)
.

from recastnavigation.

hymerman avatar hymerman commented on May 7, 2024

@rafzi Did #102 complete everything you wanted to do with this? Are we ok to close this issue?

from recastnavigation.

rafzi avatar rafzi commented on May 7, 2024

Yes, this is done.

from recastnavigation.

hymerman avatar hymerman commented on May 7, 2024

Great - thanks!
On 31 Dec 2015 1:53 am, "rafzi" [email protected] wrote:

Yes, this is done.


Reply to this email directly or view it on GitHub
#100 (comment)
.

from recastnavigation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.