grrrr/flext

call-loop with FLEXT_USE_CMEM

Opened this issue · 2 comments

Hello.

I ran into problems using FLEXT_USE_CMEM, it result in a call-loop:

void *operator new(size_t bytes) in flsupport.cpp calls flext_root::operator new(bytes);
which is inlined with: ::operator new(bytes); defined in flsupport.h
which calls the global new operator again.

Not sure what the idea was about FLEXT_USE_CMEM, but this seems wrong.
It looks like neither the global new operator nor the inline new-operator is necessary?

I worked on this issue on this branch (removing new and delete functions):
https://github.com/rabbitControl/flext/tree/cmem_remove_new_delete

If you like i can create a PR for this.

grrrr commented

Created PR #55 - let's see.