Git Product home page Git Product logo

Comments (4)

skaslev avatar skaslev commented on August 21, 2024

I'm guessing that different gl3w.hpp file would need to be generated too (with namespaces and no macros), or if gl3w.h is to be shared between the C and C++ version, it would be #ifdef __cplusplus-ed (but that is probably is not a good idea since gl3w.h will provide different interfaces for C and C++ users)

I can't think of any advantages of having the generated code be in C++ instead of C. I would merge it, depending on the size of the patch. Prior to seeing the patch my opinion is that gl3w doesn't need that extra complexity and a fork might be a good idea.

from gl3w.

tombsar avatar tombsar commented on August 21, 2024

The way I coded it generates gl3w.cc and gl3w.hh in addition to the .c and .h. You're right that there's probably no real benefit... I just liked the idea of having everything neatly contained inside a gl3w namespace.

from gl3w.

Kos avatar Kos commented on August 21, 2024

I remember back in the day that the IDE would give me completions for functions but not for macros defined as functions. Years have passed, not sure how relevant this is nowadays.

from gl3w.

tombsar avatar tombsar commented on August 21, 2024

On reflection I think sticking to C is best for this library, so I'm going to close this as a WONTFIX.

from gl3w.

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.