Skip to content
Snippets Groups Projects
Commit a4cb7102 authored by Philippe Canal's avatar Philippe Canal
Browse files

__MAKECLING__ does not exist, use __ROOTCLING__ instead

parent 49caf722
No related branches found
No related tags found
Loading
...@@ -764,7 +764,7 @@ typedefs seen so far by Cling. Example: ...@@ -764,7 +764,7 @@ typedefs seen so far by Cling. Example:
``` {.cpp} ``` {.cpp}
// some C++ header definition // some C++ header definition
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
// turns off dictionary generation for all // turns off dictionary generation for all
#pragma link off all class; #pragma link off all class;
#pragma link off all function; #pragma link off all function;
...@@ -802,7 +802,7 @@ identical. Example: ...@@ -802,7 +802,7 @@ identical. Example:
``` {.cpp} ``` {.cpp}
// some C++ header definition // some C++ header definition
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off all class; #pragma link off all class;
#pragma link C++ class A; #pragma link C++ class A;
#pragma link C++ class B; #pragma link C++ class B;
...@@ -825,7 +825,7 @@ Example: ...@@ -825,7 +825,7 @@ Example:
``` {.cpp} ``` {.cpp}
// some C/C++ header definition // some C/C++ header definition
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off all global; #pragma link off all global;
#pragma link off all typedef; #pragma link off all typedef;
#pragma link C++ global a; #pragma link C++ global a;
...@@ -844,7 +844,7 @@ Example: ...@@ -844,7 +844,7 @@ Example:
``` {.cpp} ``` {.cpp}
// some C/C++ header definition // some C/C++ header definition
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off all global; #pragma link off all global;
#pragma link off all typedef; #pragma link off all typedef;
#pragma link C++ global a; #pragma link C++ global a;
...@@ -892,7 +892,7 @@ class A { ...@@ -892,7 +892,7 @@ class A {
The pragma statements are: The pragma statements are:
``` {.cpp} ``` {.cpp}
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off all functions; #pragma link off all functions;
#pragma link C++ function f; #pragma link C++ function f;
#pragma link C++ function g(int,double); #pragma link C++ function g(int,double);
...@@ -923,7 +923,7 @@ template<class T> class A { ...@@ -923,7 +923,7 @@ template<class T> class A {
And generate dictionary for that: And generate dictionary for that:
``` {.cpp} ``` {.cpp}
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link C++ class A<int>; #pragma link C++ class A<int>;
#endif #endif
``` ```
...@@ -944,7 +944,7 @@ You can generate dictionary for the newly instantiated template member ...@@ -944,7 +944,7 @@ You can generate dictionary for the newly instantiated template member
function only. function only.
``` {.cpp} ``` {.cpp}
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off defined_in A.h; #pragma link off defined_in A.h;
#pragma link C++ function A<int>::f(B&); #pragma link C++ function A<int>::f(B&);
#endif #endif
...@@ -960,7 +960,7 @@ functions in all classes. ...@@ -960,7 +960,7 @@ functions in all classes.
Example: Example:
``` {.cpp} ``` {.cpp}
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off all methods; #pragma link off all methods;
#endif #endif
``` ```
...@@ -977,7 +977,7 @@ At this moment, there should be no needs to use those statements. ...@@ -977,7 +977,7 @@ At this moment, there should be no needs to use those statements.
Example: Example:
``` {.cpp} ``` {.cpp}
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off all_function A; #pragma link off all_function A;
#pragma link off all_datamember A; #pragma link off all_datamember A;
#endif #endif
...@@ -1001,7 +1001,7 @@ Example: ...@@ -1001,7 +1001,7 @@ Example:
// file2.h // file2.h
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link off all classes; #pragma link off all classes;
#pragma link off all functions; #pragma link off all functions;
#pragma link off all globals; #pragma link off all globals;
...@@ -1041,7 +1041,7 @@ namespace ns { ...@@ -1041,7 +1041,7 @@ namespace ns {
The pragma statements are: The pragma statements are:
``` {.cpp} ``` {.cpp}
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link C++ defined_in ns; #pragma link C++ defined_in ns;
#pragma link C++ nestedclass; #pragma link C++ nestedclass;
#endif #endif
...@@ -1067,7 +1067,7 @@ This pragma statement must be given before `rootcling` reads any ...@@ -1067,7 +1067,7 @@ This pragma statement must be given before `rootcling` reads any
C/C++ definitions from header files. Example: C/C++ definitions from header files. Example:
``` {.cpp} ``` {.cpp}
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link default off; #pragma link default off;
#endif #endif
...@@ -1081,7 +1081,7 @@ class B { ...@@ -1081,7 +1081,7 @@ class B {
double e; double e;
}; };
#ifdef __MAKECLING__ #ifdef __ROOTCLING__
#pragma link C++ class A; // only class A is linked, not B #pragma link C++ class A; // only class A is linked, not B
#endif #endif
``` ```
......
...@@ -507,7 +507,7 @@ two ways. The simplest way is to add at the end of script (i.e. after ...@@ -507,7 +507,7 @@ two ways. The simplest way is to add at the end of script (i.e. after
the symbols have been defined) something like: the symbols have been defined) something like:
``` {.cpp} ``` {.cpp}
#if defined(__MAKECLING__) #if defined(__ROOTCLING__)
#pragma link C++ class MyOtherClass; #pragma link C++ class MyOtherClass;
#endif #endif
``` ```
...@@ -579,10 +579,10 @@ the Cling limitations, you can use the C preprocessor symbols defined ...@@ -579,10 +579,10 @@ the Cling limitations, you can use the C preprocessor symbols defined
for Cling and `rootcling`. for Cling and `rootcling`.
The preprocessor symbol `__CLING__` is defined for both ROOT and The preprocessor symbol `__CLING__` is defined for both ROOT and
`rootcling`. The symbol `__MAKECLING__` (and `__MAKECLING__` for backward `rootcling`. The symbol `__ROOTCLING__` (and `__ROOTCLING__` for backward
compatibility) is only defined in `rootcling`. compatibility) is only defined in `rootcling`.
Use `!defined(__CLING__) || defined(__MAKECLING__)` to bracket code that Use `!defined(__CLING__) || defined(__ROOTCLING__)` to bracket code that
needs to be seen by the compiler and `rootcling`, but will be invisible needs to be seen by the compiler and `rootcling`, but will be invisible
to the interpreter. to the interpreter.
...@@ -610,7 +610,7 @@ not visible. If you add the following preprocessor statements: ...@@ -610,7 +610,7 @@ not visible. If you add the following preprocessor statements:
``` {.cpp} ``` {.cpp}
#if !defined(__CLING__) #if !defined(__CLING__)
int gArray[] = { 2, 3, 4}; int gArray[] = { 2, 3, 4};
#elif defined(__MAKECLING__) #elif defined(__ROOTCLING__)
int gArray[]; int gArray[];
#endif #endif
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment