You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
638 B
C++
21 lines
638 B
C++
|
|
bool canRun=true;
|
|
{% for ptr in inputs %}
|
|
canRun &= !{{ptr[1]}}.willUnderflowWith({{nb}});
|
|
{% endfor %}
|
|
{% for ptr in outputs %}
|
|
canRun &= !{{ptr[1]}}.willOverflowWith({{nb}});
|
|
{% endfor %}
|
|
|
|
if (!canRun)
|
|
{
|
|
{% if asyncDefaultSkip %}
|
|
cgStaticError = CG_SKIP_EXECUTION_ID_CODE;
|
|
{% else %}
|
|
cgStaticError = CG_BUFFER_ERROR_ID_CODE;
|
|
{%- endif %}
|
|
}
|
|
else
|
|
{
|
|
cgStaticError = 0;
|
|
} |