Prism 6.0 User's Guide

Customizing Different Versions of Prism

You can customize MP Prism just as you customize scalar Prism. Both MP Prism and scalar Prism use the same .prisminit file. This could lead to error messages if you bring up scalar Prism and the file contained MP Prism-specific commands. Therefore, Prism lets you specify that commands in your .prisminit file are for MP Prism only by bracketing them with #ifdef MP and #endif. For example,

alias c cont
#ifdef MP
pset 0
alias c "cont; wait every"
#endif

These commands define c to aliases differently in scalar Prism and MP Prism, and set the initial pset to 0 in MP Prism.

To provide this feature, Prism must preprocess the .prisminit file; by default it does not do this. To tell Prism to preprocess the file, use the Prism resource Prism.cppPath, specifying the path to your C preprocessor as its setting; typically, this is /lib. Thus, you would set the resource as follows:

Prism.cppPath: /lib

See " Changing Prism Defaults" for information on setting Prism resources. Note, however, that commands-only Prism is not aware of the settings of Prism resources such as Prism.cppPath, unless the settings are contained in the system-wide Prism app-defaults file.