Make it more scripting-ish, for example a syntax such as:
Code:
[macro name]
$headers
(required headers)
$inputs
"prompt phrase 1" "initial text" "default value"
"prompt phrase 2" "initial text 2" forceinput <-disallow empty input
$code
(some code) $1 (some other code)
(lalala) $2
$1 and $2 would be replaced with user input that is acquired from message prompts as specified in the $inputs section or something.
For example:
Code:
[Open File for Read]
$headers
<fstream>
$inputs
"Enter object name:" "" "fileIn"
"Enter filename:" "" forceinput
"Additional flags (optional):" "" "0"
$code
std::ifstream $1($2, $3);
if(!$1)
{
//-- Insert error handling here --
}
Just some ideas Something like this would add a LOT of flexibility to the macro feature.