Skip to content
Snippets Groups Projects
Commit dbadff0a authored by Per Hedbor's avatar Per Hedbor
Browse files

master()->predefines can now contain non-string values

Actually, they could always include at least 0, indicating no value,
just a define. But a new addition is the possibility of them being
callables. For now, simply ignore those
parent 9d9d90a7
No related branches found
No related tags found
No related merge requests found
......@@ -456,7 +456,10 @@ Process spawn_pike(array(string) argv, void|mapping(string:mixed) options)
if(options && options->add_predefines)
{
foreach (master()->predefines; string key; string value)
if( stringp( value ) )
res+=({"-D" + key + "=" + value});
else if( intp( value ) )
res+=({"-D" + key });
}
if(options && options->add_program_path)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment