lloyd / yajl

A fast streaming JSON parsing library in C.
http://lloyd.github.com/yajl
ISC License
2.15k stars 435 forks source link

add va_list overload of `yajl_gen_config` #215

Open omochi opened 5 years ago

omochi commented 5 years ago

This PR add va_list overload of yajl_gen_config.

I am using this library from my JSON library in Swift. Swift has C Interop feature so I use yajl API directly from Swift.

https://github.com/omochi/FineJSON/blob/master/Sources/FineJSON/JSONSerialize.swift

Unfortunately, Swift can not call variadic argument function in C. This is limitation of interop feature. But it can handle va_list normally.

So I want to add this overload.