summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-08 19:18:02 -0400
committerAdam <Adam@anope.org>2014-05-08 19:56:31 -0400
commit86e313cb46c43ade5f3ddd2d4f8f3cb6cc898e67 (patch)
tree1621dc7e7b651def2ed25ff731ed5092b18b3c10 /tools
parentc948edd1116b7ba0c651115ff91a4c281fa52242 (diff)
Do not export callers
Their functions are all inlined and Windows gives unresolved symbol errors
Diffstat (limited to 'tools')
-rwxr-xr-xtools/create_templates.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/create_templates.pl b/tools/create_templates.pl
index dfdaa29d1..415433226 100755
--- a/tools/create_templates.pl
+++ b/tools/create_templates.pl
@@ -45,7 +45,7 @@ for(my $i = 0; $i <= $maxparams; $i++)
# And now the caller family
-print "template <typename HandlerType> class CoreExport caller\n";
+print "template <typename HandlerType> class caller\n";
print "{\n";
print " public:\n";
print " HandlerType* target;\n\n";
@@ -72,13 +72,13 @@ for(my $i = 0; $i <= $maxparams; $i++)
my @templatetypepairs = map { $_ . " " . lc($_) } @templatetypes;
my @lctemplatetypes = map(lc, @templatetypes);
- print "template <typename " . join(', typename ', @templatetypes) . "> class CoreExport caller" . $i . " : public caller< " . $handlertype . " >\n";
+ print "template <typename " . join(', typename ', @templatetypes) . "> class caller" . $i . " : public caller< " . $handlertype . " >\n";
print "{\n";
print " public:\n";
print " caller" . $i . "(" . $handlertype . "* initial)\n";
print " : caller< " . $handlertype. " >::caller(initial)\n";
print " { }\n\n";
- print " virtual ReturnType operator() (" . join(', ', @templatetypepairs[1..$#templatetypepairs]) . ")\n";
+ print " ReturnType operator() (" . join(', ', @templatetypepairs[1..$#templatetypepairs]) . ")\n";
print " {\n";
print " return this->target->Call(" . join(', ', @lctemplatetypes[1..$#lctemplatetypes]) . ");\n";
print " }\n";