Giter VIP home page Giter VIP logo

Comments (10)

reduz avatar reduz commented on May 15, 2024

Godot is not expected to be used as a library, so I'd rather leave
libraries the burden of not clashing, same goes for namespaces.

On Thu, Feb 13, 2014 at 10:15 AM, Markus Elfring
[email protected]:

I find that include guards like "ARRAY_Hhttps://github.com/okamstudio/godot/blob/0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac/core/array.h#L29"
and "MAP_Hhttps://github.com/okamstudio/godot/blob/0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac/core/map.h#L29"
are too short for the safe reuse of your header files.
How do you think about to make themhttp://en.wikipedia.org/wiki/Include_guard#Difficultiesunique by appending a
kind of UUID http://en.wikipedia.org/wiki/Universally_unique_identifier?

Reply to this email directly or view it on GitHubhttps://github.com//issues/54
.

from godot.

elfring avatar elfring commented on May 15, 2024

Will Godot reuse any library with similarly short include guards?

from godot.

reduz avatar reduz commented on May 15, 2024

I haven't had any issue with this in over a decade so I'm honesty not very
worried, most libraries try to make sure their guards are unique enough, or
just end not clashing.

On Thu, Feb 13, 2014 at 10:28 AM, Markus Elfring
[email protected]:

Will Godot reuse any library with similarly short include guards?

Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-34977454
.

from godot.

elfring avatar elfring commented on May 15, 2024

Would it be useful to provide any component from Godot as a software library?

from godot.

TiZ-HugLife avatar TiZ-HugLife commented on May 15, 2024

Why include guards as opposed to pragma once?

from godot.

elfring avatar elfring commented on May 15, 2024

Would you like that the source code stays standard-compliant there?

from godot.

TiZ-HugLife avatar TiZ-HugLife commented on May 15, 2024

I'm pretty sure every compiler supports that directive.

from godot.

 avatar commented on May 15, 2024

don't understimate shitty console compilers

On Thu, Feb 13, 2014 at 1:46 PM, TiZ-EX1 [email protected] wrote:

I'm pretty sure every compiler supports that directive.

Reply to this email directly or view it on GitHubhttps://github.com//issues/54#issuecomment-34998227
.

OkamStudio

from godot.

TiZ-HugLife avatar TiZ-HugLife commented on May 15, 2024

Haha, okay, you got me there.

from godot.

 avatar commented on May 15, 2024

well, for now this is not a problem, so closing it

from godot.

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.