dangmoody / HLML

Auto-generated maths library for C and C++ based on HLSL/Cg
24 stars 1 forks source link

Optional `#define` for allowing C++ users to use a `hlml` namespace. #68

Closed dangmoody closed 2 months ago

dangmoody commented 7 months ago

I saw the xxHash documentation the other day that they have an optional #define for using the API with namespaces. It's completely optional and seems to 'just work'.

This means that HLML could also do the same thing and provide support for users who have been complaining of name collisions with other libraries/modules.

I'm only going to do an initial investigation for now which looks into how much friction and boilerplate this ends up introducing to the codebase. My guess is quite a bit.

dangmoody commented 2 months ago

Fixed in 650785f, published in v2.3.0 release.