hook in generateCanvas

This commit is contained in:
Zeno Rogue 2019-09-08 12:24:50 +02:00
parent 1621b0b556
commit 3ca08cff9a
1 changed files with 5 additions and 0 deletions

View File

@ -1523,7 +1523,12 @@ EX namespace patterns {
return ep.parse();
}
EX hookset<int(cell*)> *hooks_generate_canvas;
EX int generateCanvas(cell *c) {
int i = callhandlers(-1, hooks_generate_canvas, c);
if(i != -1) return i;
switch(whichCanvas) {
#if CAP_CRYSTAL
case 'K':