{% 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 %}