Skip to content

Possible bug stork.sh script #17152

Answered by cticenhour
sahu07 asked this question in Q&A General
Feb 28, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

registerSyntax is a function-like macro, and you can see its definition here:

#define registerSyntax(action, action_syntax) \
syntax.registerActionSyntax(action, action_syntax, "", __FILE__, __LINE__)

This is why changing s to syntax worked, since the macro definition holds a Syntax object called syntax. By looking at the definition above, it suggests that you could also leave the s and do this:

void
TestApp::registerAll(Factory & f, ActionFactory & af, Syntax & s)
{
  ModulesApp::registerAll(f, af, s);
  Registry::registerObjectsTo(f, {"TestApp"});
  Registry::registerActionsTo(af, {"TestApp"}…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cticenhour
Comment options

Answer selected by sahu07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants