samples/f.ysl2
author Volker Birk <vb@pep-project.org>
Fri, 11 Oct 2019 21:39:11 +0200
changeset 33 12c0bdcb709d
parent 0 76005e62091d
permissions -rw-r--r--
Added tag 2.6.0 for changeset 9b2eff55a3ae
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
    }
}