Coder Social home page Coder Social logo

Make include guards unique about vg HOT 4 CLOSED

vgteam avatar vgteam commented on July 26, 2024
Make include guards unique

from vg.

Comments (4)

ekg avatar ekg commented on July 26, 2024

Would you please propose a patch? I support changing this.
On Jun 8, 2015 12:17 PM, "Markus Elfring" [email protected] wrote:

I find that include guards like "INDEX_H
https://github.com/ekg/vg/blob/4bbbd251aae0e753e6e326d14ea6c8b11be9de7f/index.hpp#L1"
and "PATH_H
https://github.com/ekg/vg/blob/0f4e94613213e983ef3e030321efd20f5036b3e1/path.hpp#L1"
are too short for the safe reuse of your header files (when they belong to
an application programming interface).


Reply to this email directly or view it on GitHub
#42.

from vg.

ekg avatar ekg commented on July 26, 2024

Things should move to VG_INDEX_H and so on. No?

from vg.

elfring avatar elfring commented on July 26, 2024

How do you think about to make include guards unique by appending a kind of UUID?

from vg.

ekg avatar ekg commented on July 26, 2024

I think that'd be fine, but if I implement the patch I'll do the simplest
thing and prefix VG on everything.

On Wed, Oct 7, 2015 at 5:56 PM, Markus Elfring [email protected]
wrote:

How do you think about to make include guards
https://en.wikipedia.org/wiki/Include_guard#Difficulties unique by
appending a kind of UUID
https://en.wikipedia.org/wiki/Universally_unique_identifier?


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

from vg.

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.