Skip to content

Commit ba7e428

Browse files
committed
Partially revert "InitStageRegistry.h: prepare macros for being used in another namespace"
Restore previous definition of NUM_INIT_STAGES (that does not contain inet::). NUM_INIT_STAGES is used as inet::NUM_INIT_STAGES in Simu5G and potentially other derived projects as well. If we added "inet::" to the definition now, it would cause compile errors in Simu5G, requiring INET-version-dependent code in it to fix. We better leave the original definition.
1 parent ad21061 commit ba7e428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inet/common/InitStageRegistry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class INET_API InitStage
6868

6969
#define Define_InitStage_Dependency(source, target) EXECUTE_PRE_NETWORK_SETUP(inet::InitStageRegistry::getInstance().addInitStageDependency(#source, #target))
7070

71-
#define NUM_INIT_STAGES inet::InitStageRegistry::getInstance().getNumInitStages()
71+
#define NUM_INIT_STAGES InitStageRegistry::getInstance().getNumInitStages()
7272

7373
} // namespace inet
7474

0 commit comments

Comments
 (0)