- Add --generate-json=<file> flag to output API metadata as JSON - JSONSerializer collects all declarations and serializes to JSON - Includes all types: opaque, typedefs, function pointers, enums, structs, unions, flags, functions - Tested with SDL_init.h, SDL_video.h, SDL_gpu.h, SDL_pixels.h, SDL_rect.h - JSON can be queried with jq for API analysis Note: Minor memory leaks exist in comment duplication, will address separately |
||
|---|---|---|
| .. | ||
| SDL_gpu.h.json | ||
| SDL_init.json | ||
| SDL_pixels.h.json | ||
| SDL_rect.h.json | ||
| SDL_video.json | ||