jsmn icon indicating copy to clipboard operation
jsmn copied to clipboard

Mixing objects compiled with and without JSMN_PARENT_LINKS should be a compile-time error

Open DemiMarie opened this issue 8 years ago • 1 comments

Currently, inconsistent #defines for JSMN_PARENT_LINKS between when jsmn was compiled and when the client code is compiled can cause a seg fault, and it is not possible to mix jsmn built with and without JSMN_PARENT_LINKS in the same executable. It would be nice to give a link-time error, and even better to allow both versions of jsmn to be mixed.

DemiMarie avatar Feb 03 '16 09:02 DemiMarie

Thanks, that solved a bug in my project. This should be a note in the documentation!

gabordemooij avatar Feb 18 '18 12:02 gabordemooij