Skip to content

Comment on Show HN: Simple C library for an XBox Controller (Linux) for easy use in gamesparent

Comments

You really don't need to prefix everything with the same prefix everywhere, even in C. Using a per-module prefix that is unlikely to clash is enough.

For your vector and quaternion libs... You should make them header only, all static inline functions and perhaps with always_inline attribute if you care about performance. This also removes any need for prefixes.

I won't continue that mt Prefix streak. Maybe I think of something better later :)

That is a good idea, I will look into that, thanks!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.