jim
jim copied to clipboard
Immediate Mode JSON Serialization Library in C
jim_begin() cleans up the state. jim_end() closes dangling scopes.
This PR fixes #5 Throw a `JIM_SCOPE_MISMATCH` error if we try to close an array scope with `jim_object_end()` and vice versa.
Hi @rexim :wave: I came across this library while I was watching your youtube video on implementing GC in C (awesome video btw). And thought I'd check it out :)...
https://youtu.be/rcBVqcoQkuA?si=TSamomJ3941G6LUO&t=1372 > If you ever feel the need to call any of these private functions, please drop me an issue I hope it also applies to this repo. ## Use...
.. on Windows %ld expects 32 bits but ptrdiff_t is 64 bits. Fixes the following warning when compiled with MSVC: ``` console C:\Users\mikko\git\jim\jimp.h(277): warning C4477: 'fprintf' : format string '%ld'...
https://github.com/tsoding/jim/blob/e81c62c6a982e0f1bda0408d9765814d72b5d32e/jim2.h#L63 Could have been `JIMPLEMENTATION`.