Re: Question about calling rules from within a generator
Steven Watanabe via Boost-build <[email protected]> Mon, 1 Apr 2019 14:44:20 -0600
| Newsgroups | gmane.comp.lib.boost.build |
|---|---|
| Organization | Providere Consulting, Inc. |
| Message-ID | <[email protected]> |
AMDG On 4/1/19 2:31 PM, Thomas Brown via Boost-build wrote: > I was trying to use the assert module to check various assumptions > within my custom generator class when I found it is not possible to > call those rules. This is also true of other user-defined rules > within the same file as the generator. Is this expected? > You need to import them inside the class. Rules from the outer module are not automatically visible within the class. A class is an independent module that has no semantic relationship to the context in which it is defined. > See the attached file for a minimal example that shows the issue. The > project will run correctly after commenting out the call to > `assert.true` in `g.jam`. > In Christ, Steven Watanabe _______________________________________________ Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build