Make hookset<T> a pointer type, just like purehookset.

No more declaring `hookset<T> *hooks_foo`; now it's just
`hookset<T> hooks_foo` at global scope. This clears the way to
make `hookset<T>` into a class type if we want.
This commit is contained in:
Arthur O'Dwyer
2020-04-12 10:50:18 -04:00
parent 934e3d9a42
commit 0d42168139
23 changed files with 44 additions and 43 deletions
+1 -1
View File
@@ -951,7 +951,7 @@ typedef pair<string, reaction_t> named_functionality;
inline named_functionality named_dialog(string x, reaction_t dialog) { return named_functionality(x, [dialog] () { pushScreen(dialog); }); }
#endif
EX hookset<named_functionality()> *hooks_o_key;
EX hookset<named_functionality()> hooks_o_key;
EX named_functionality get_o_key() {