1
0
Files
libcmo21/Assets/CodeGen/BMapBinder/ExpFctsRender/templates/expfcts.rs.jinja

20 lines
569 B
Plaintext
Raw Normal View History

2026-02-11 10:27:44 +08:00
{%- for fct in payload.fcts %}
/// {{ fct.fct_name }}
///
/// # Parameters
///
{%- for param in fct.fct_params %}
/// - `{{ param.var_name }}`: Direction: {% if param.is_input -%} input {%- else -%} output {%- endif %}. C++ type: `{{ param.var_type.to_c_type() }}`. {{ param.var_desc }}
{%- endfor %}
///
/// # Return
///
/// True if no error, otherwise False.
2026-02-15 15:46:12 +08:00
pub unsafe fn {{ fct.fct_name }}(
{%- for param in fct.fct_params -%}
{{ param.var_name }}: {{ utils.get_rust_type(param) }}
{%- if not loop.last %}, {% endif %}
{%- endfor -%}
) -> BMBOOL;
2026-02-11 10:27:44 +08:00
{%- endfor %}