From db4b0aeb928461a058e59969e07df886cbd990c1 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Tue, 19 Dec 2023 13:36:42 +0100 Subject: [PATCH] docs: remove section on constants in style guide It is needlessly restrictive and specific without good reason. --- runtime/doc/dev_style.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/runtime/doc/dev_style.txt b/runtime/doc/dev_style.txt index 05dc727130..9e00210f8c 100644 --- 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*