Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Project vs. Temporary macros (https://www.kinook.com/Forum/showthread.php?t=3544)

tan125 03-26-2008 02:10 PM

Project vs. Temporary macros
 
What is the difference between a project macro and a temporary macro? Temp macros are specific to the instance of VBP, but I guess what I'm asking is what defines the scope of a project for a project macro? If I have a project macro, and I have a step where I call a different .bld file, do I need to pass it into that .bld file or is this considered within the scope of the project?

kinook 03-26-2008 02:20 PM

Project macros are specific to a given project (.bld file). They are not automatically passed to project B when called from project A. You can pass them as temporary macros to a chained project using the Parameters tab of the VisBuildPro Project action.

Temporary macros are specific to a given VBP instance and are not persisted to disk. They are created by passing macro values on the command-line, a Set Macro action, and by various actions when a step of that action type is built (i.e., COPY_COPY_COUNT, PROCFILES_FILENAME, etc.), prompting for undefined macros, etc., and usually deleted at the end of a build. They have a higher precedence than project macros (a temporary macro X will be used over project macro X).

http://www.visualbuild.com/Manual/macrostab.htm


All times are GMT -5. The time now is 12:35 PM.


Copyright © 1999-2023 Kinook Software, Inc.