This is an ECS written in C++ C, using as low-level things as possible (but wrapping every array into a struct
, too!)
Here's why I chose C after writing C++, haha! (Part of an "informal message" I sent):
"""
-
I like
namespace
s, but I don't want tostatic_cast<>()
results from every call tomalloc()
/calloc()
/realloc()
, so... -
I also dislike being given C++ suggestions for my ECS, which I want to keep as close as possible to C.
-
I was using
enum class
es that: size_t
too, but it seems that even this is going away now. -
SonarLint somehow forced me into using
functional
. -
I've also totally ignored references for some reason. Just wanted that "complete C feel", I guess.
-
I want this code to run in many places as possible, which is why I'm writing it in C, I suppose. I don't really know, though. I just want to avoid mixing and mashing C and C++ a bit and avoid that useless
static_cast<>()
at all costs!
...Alright. So... I guess you now understand my motivation behind my wish to switch to C.
"""
I'm LOVING writing this in C, though I kinda' do wish I had references to work with. Y'know, the NULL
eliminators!
Enjoy looking at the code - have a good day! ":D!~