ErikMinekus / sm-ripext

SourceMod REST in Pawn Extension
https://forums.alliedmods.net/showthread.php?t=298024
GNU General Public License v3.0
133 stars 38 forks source link

Update code design for JSON flags #35

Closed Wend4r closed 3 years ago

Wend4r commented 3 years ago

Replace hexadecimal flags to bit offets. Fixed a typo instead of JSON_ALLOW_NUL on JSON_ALLOW_NULL.

ErikMinekus commented 3 years ago

These names and values come from Jansson:

https://github.com/akheron/jansson/blob/master/src/jansson.h#L358-L362 https://github.com/akheron/jansson/blob/master/src/jansson.h#L381-L390

So I'm hesitant to change them.

Wend4r commented 3 years ago

https://github.com/ErikMinekus/sm-ripext/pull/35#issuecomment-773961211

Okey. I think JSON_ALLOW_NUL has already been brought into the standard in Jansson.