Commit a34894e
authored
No StMaker functions if no StMaker loaded (#693)
In ROOT6, it isn't enough to just hide a class's functions inside an
`if`
clause checking the corresponding TClass's existence when the class
isn't
loaded. This can be demonstrated currently in SL24x by simply executing:
```
root4star -b -l -q
```
...which produces an error when executing `rootlogoff.C` at quit. Maybe
there
are other solutions, but this simple proposal breaks `rootlogoff.C` into
two parts,
not even loading the second part unless the first part is true
- test the existence of the StMaker class
- execution of StMaker functions
I welcome other proposals.1 parent 3271996 commit a34894e
2 files changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments