mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
docs: remove section on constants in style guide
It is needlessly restrictive and specific without good reason.
This commit is contained in:
parent
095bd8d0f8
commit
db4b0aeb92
@ -79,17 +79,6 @@ Non-symbols:
|
|||||||
- EXCEPTION: if the macro calls a function, then it must be moved to a normal
|
- EXCEPTION: if the macro calls a function, then it must be moved to a normal
|
||||||
header.
|
header.
|
||||||
|
|
||||||
Constants ~
|
|
||||||
|
|
||||||
Do not use macros to define constants in headers.
|
|
||||||
|
|
||||||
Macro constants in header files cannot be used by unit tests.
|
|
||||||
|
|
||||||
However, you are allowed to define a macro that holds the same value as a
|
|
||||||
non-enum constant (defined in the same header) if the value of the constant
|
|
||||||
represents the size of an array.
|
|
||||||
|
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
Scoping *dev-style-scope*
|
Scoping *dev-style-scope*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user