katang

Scope of SC_HAS_PROCESS

2 posts in this topic

I am following the alternative style in book SCFTGU, and I wanted to put two closely related modules in the same source file. I collected the experience that using  SC_HAS_PROCESS for the second module in the same source file provokes error message. Why is it so?

 

Share this post


Link to post
Share on other sites

Recommended practice is to put SC_HAS_PROCESS within the scope of the module itself:

SC_MODULE(Module)
{
  SC_HAS_PROCESS(Module);
  // ...
};

Hope that helps,
 Philipp

maehne likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now