Merge commit 'd8692f6ed56a8bb1bcdd1117aef7df69ec1c39aa' into types

"index" and "index-one" options for space tables
This commit is contained in:
Tomasz Sowa 2021-09-23 14:09:23 +02:00
commit dfb8e5da78
1 changed files with 10 additions and 0 deletions

View File

@ -1497,6 +1497,16 @@ void Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::CallSpace
if( !IsTestingFunctionExistence() )
{
DumpSpaceIfNeeded(result, parameters, space);
if( HasParam(parameters, L"index") )
{
result.stream << space_wrapper.get_space_iterator_value(model_wrapper_space_table_index);
}
if( HasParam(parameters, L"index-one") )
{
result.stream << (space_wrapper.get_space_iterator_value(model_wrapper_space_table_index) + 1);
}
}
}