From 4dd34eddef8129e93083e95fcbbc130ae6cded40 Mon Sep 17 00:00:00 2001 From: Danilo Piparo Date: Tue, 31 Dec 2024 10:11:12 +0100 Subject: [PATCH] Update linkdef instructions about enums. --- manual/io_custom_classes/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/manual/io_custom_classes/index.md b/manual/io_custom_classes/index.md index b09e683a..cbc4e484 100644 --- a/manual/io_custom_classes/index.md +++ b/manual/io_custom_classes/index.md @@ -158,6 +158,7 @@ Here is an example linkdef file: #pragma link C++ nestedtypedefs; #pragma link C++ class MyClass+; #pragma link C++ namespace Some::Nested::Namespace; +#pragma link C++ enum myEnum; #endif {% endhighlight %} @@ -175,7 +176,7 @@ public: }; {% endhighlight %} -The namespace directive instructs `rootcling` to include every type in the selected namespace in the dictionary. +The namespace directive instructs `rootcling` to include every type in the selected namespace in the dictionary. The enum directive includes the enumerator `myEnum`, which becomes known to ROOT's typesystem before parsing the corresponding headers, for example to for autoloading the library where it is defined. > **Note** > @@ -183,7 +184,7 @@ The namespace directive instructs `rootcling` to include every type in the selec > **Note** > -> In the past, linkdef files also contained directives for global variables, functions and enums: these directives are ignored since ROOT version 6. +> In the past, linkdef files also contained directives for global variables and functions: these directives are ignored since ROOT version 6. ### Selection by file name