Giter VIP home page Giter VIP logo

Comments (4)

AlexVlx avatar AlexVlx commented on June 19, 2024

Thank you for filing this. Since that's a macro, namespacing won't really help much. Also, we're clients of libco so modifying it would be a last resort (although possibly desirable, ultimately, since this is a consequence of us using it as a header only / all inline library, which is a modification in and of itself). What I think can be done is something like this:

#if defined(section)
#undef section
#endif
#include <whatever_qt_file_leads_to_qstring.h_being_included>

from hip-cpu.

lanwatch avatar lanwatch commented on June 19, 2024

Hi Alex,

how about

#include "../../../../external/libco/libco.h"
#undef section

in fiber.hpp:24 ?

Works for me :)

from hip-cpu.

AlexVlx avatar AlexVlx commented on June 19, 2024

@franjesus yup, that works too and is cleaner, but I've convinced myself that having a macro squat on such a common name is a faux pas, so I'll bite the bullet and just rename the macro to LIBCO_SECTION (other libco macros are similarly "namespaced", to it should be possible to have this upstreamed eventually).

from hip-cpu.

lanwatch avatar lanwatch commented on June 19, 2024

Thanks! makes sense

from hip-cpu.

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.