samples/f.ysl2
author Volker Birk <vb@pep-project.org>
Mon, 04 Nov 2019 11:37:27 +0100
changeset 39 054ce625f75a
parent 0 76005e62091d
permissions -rw-r--r--
Added tag 2.6.2 for changeset f93de5b34430
include yslt.yml2

tstylesheet {
    function stType {
        param "type";

        choose {
            when "$type='long'" > DINT
            when "$type='short'" > INT
        }
    }

    function cType {
        param "type";

        when "$type='long'" > int32_t
        when "$type='short'" > int16_t
    }
}