Skip to content

Commit

Permalink
Make sure INI_CALL_HANDLER_ON_NEW_SECTION is defined (#86)
Browse files Browse the repository at this point in the history
(And stays disabled by default)
  • Loading branch information
NiLuJe authored and benhoyt committed Jul 30, 2019
1 parent 307f594 commit ab387ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ini.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ int ini_parse_string(const char* string, ini_handler handler, void* user);
#define INI_STOP_ON_FIRST_ERROR 0
#endif

/* Nonzero to call the handler at the start of each new section (with
name and value NULL). Default is to only call the handler on
each name=value pair. */
#ifndef INI_CALL_HANDLER_ON_NEW_SECTION
#define INI_CALL_HANDLER_ON_NEW_SECTION 0
#endif

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit ab387ce

Please sign in to comment.