This commit is contained in:
Grzegorz Michalski
2026-03-02 09:47:35 +01:00
commit 2c225d68ac
715 changed files with 130067 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
{% macro check_null(var_name, var_value) %}
{% if var_value == None or var_value | string == '' %}
{{ elog("Macro local variable " ~ var_name ~ " is empty!", "ERR", 0)}}
{{ exceptions.raise_compiler_error("Variable " ~ var_name ~ " is empty!") }}
{% endif %}
{% endmacro %}

View File

@@ -0,0 +1,7 @@
{% macro check_variable(var_name) %}
{% if var(var_name, none) is none %}
{{ exceptions.raise_compiler_error("The required global variable " ~ var_name ~ " hasn't been provided!") }}
{% endif %}
{% endmacro %}