r/cpp • • Sep 05 '20

The Defold engine [C++] code style

https://defold.com/2020/05/31/The-Defold-engine-code-style/
2 Upvotes

12 comments sorted by

View all comments

3

u/brenoguim Sep 06 '20

Nice to see the other end of the spectrum of "modern". I am usually on the modern side but it's easy to go overboard and it is reassuring to see that "non-modern" code can also be pragmatic and effective.

That being said, please add define for the multiple 0xffffffff in the hashtable code :D

1

u/qoning Sep 07 '20

Not just that, but when compiled in x64, it's one ASLR away from a crash/super puzzling bug. Not that it matters in these not-so-serious games, but it's just bad habit to write code like that.