4 ms·
Looking into the code ... Wow ... This is not C++, it is C with classes ... https://github.com/defold/defold/blob/dev/engine/dlib/src/dmsdk/dlib/mutex.h https:/
by pk-protect-ai 1y ago
Looking into the code ... Wow ... This is not C++, it is C with classes ...
https://github.com/defold/defold/blob/dev/engine/dlib/src/dmsdk/dlib/mutex.h https://github.com/defold/defold/blob/dev/engine/dlib/src/dm...
Any reasons to use these wrappers instead of modern C++ capabilities?
- ksymph 1y agoThere's a great post on that by the lead Defold dev: https://defold.com/2020/05/31/The-Defold-engine-code-style/ https://defold.com/2020/05/31/The-Defold-engine-code-style/
- robterrell 1y agoIn the game industry, "C-like C++" is the norm. Games often don't use modern C++ features like exceptions, RTTI, multiple inheritance, etc. for very good reasons.