Skip to content

Refactoring #defines into typedef enums

Ondřej Surý requested to merge socket-options-refactoring into master

This is an initial attempt to refactor the various #defines into structured enums. This brings benefit of having stronger type checking with compilers that supports it (clang has -Wenum-conversion option).

Ultimately, most of the existing defines should be converted, but I would say that we should make it in small steps.

Edited by Evan Hunt

Merge request reports