MCPcopy Create free account
hub / github.com/DFHack/dfhack / addFunction

Function addFunction

library/include/RemoteServer.h:172–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171 template<typename In, typename Out>
172 void addFunction(
173 const char *name,
174 command_result (*fptr)(color_ostream &out, const In *input, Out *output),
175 int flags = 0
176 ) {
177 assert(!owner);
178 functions.push_back(new ServerFunction<In,Out>(this, name, flags, fptr));
179 }
180
181 template<typename In>
182 void addFunction(

Callers 1

CoreServiceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected