next up previous contents index
Next: Writing new functions Up: Using Smac Previous: Color syntax highlighting

Browser

 

allows to customize the browser and to access its database. Here are some functions:

Your .xcoralrc file is a good place to indicate where the pre-processors are (see §7.3.12 page gif), and their options. browser_set_pp_options function (see §7.3.12 page gif) forces browser toggle button to Prepr if its second argument is not 0, even if the pre-processor option list is empty (i.e. the second argument is the empty string "").

	browser_set_pp("C-mode", "/lib/cpp"); /* default */
	browser_set_pp("C++mode", "/lib/cpp"); /* default */
	
	browser_set_pp_options("C-mode", "-DDEBUG");
	browser_set_pp_options("C++mode", 0); /* no pre-processing in c++ */



Lionel Fournigault
Wed Apr 30 10:44:37 MET DST 1997