commit db4b0aeb928461a058e59969e07df886cbd990c1 parent 095bd8d0f8340475319cfa13776d5ec386984859 Author: dundargoc <gocdundar@gmail.com> Date: Tue, 19 Dec 2023 13:36:42 +0100 docs: remove section on constants in style guide It is needlessly restrictive and specific without good reason. Diffstat:
| M | runtime/doc/dev_style.txt | | | 11 | ----------- |
1 file changed, 0 insertions(+), 11 deletions(-)
diff --git a/runtime/doc/dev_style.txt b/runtime/doc/dev_style.txt @@ -79,17 +79,6 @@ Non-symbols: - EXCEPTION: if the macro calls a function, then it must be moved to a normal 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*