Commit Graph

1 Commits

Author SHA1 Message Date
Colin Patrick McCabe
760bc01f24 config: typecheck initialization macros
When initializing the config_options array, complain if the size of the
option field we're trying to initialize doesn't match the size of our
type. This will prevent careless type annotations from overwriting
neighboring option fields.

Also create a header called "static assert" which implements a
compile-time assert.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-04-01 10:27:40 -07:00