netmail-open / wjelement

advanced, flexible JSON manipulation in C
GNU Lesser General Public License v3.0
108 stars 56 forks source link

Add some do {} while (0) statement into ./include/memmgr.h #104

Closed joved-git closed 2 years ago

joved-git commented 2 years ago

Hello,

We use your librairie in our project but we had to add some do {} while (0) statements in one include. It is into ./include/memmgr.h and on #define MemRelease( p ) and #define MemReleaseEx( p, f, l )

We need to do that because if we use your #define without do while (0) statement, we could have compilation problems, specially if we use that #define into an if without {}.

And I think that we found this type of utilization into your own code. Really sorry to notice that.

Thanks a lot for your attention. See you. Joël.