helping us trace CUSTOM_FSIO_STACK_SIZE

This commit is contained in:
rusefillc 2021-04-08 15:59:42 -04:00
parent b49c5200b7
commit bf41ec354e
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ FsioResult LECalculator::processElement(const LEElement *element DECLARE_ENGINE_
float LECalculator::evaluate(const char * msg, float selfValue, const LEElement* element DECLARE_ENGINE_PARAMETER_SUFFIX) { float LECalculator::evaluate(const char * msg, float selfValue, const LEElement* element DECLARE_ENGINE_PARAMETER_SUFFIX) {
if (!element) { if (!element) {
warning(CUSTOM_NO_FSIO, "no FSIO code"); warning(CUSTOM_NO_FSIO, "%s no FSIO code", msg);
return NAN; return NAN;
} }
@ -293,7 +293,7 @@ float LECalculator::evaluate(const char * msg, float selfValue, const LEElement*
// The stack should have exactly one element on it // The stack should have exactly one element on it
if (stack.size() != 1) { if (stack.size() != 1) {
warning(CUSTOM_FSIO_STACK_SIZE, "unexpected FSIO stack size at return: %d", stack.size()); warning(CUSTOM_FSIO_STACK_SIZE, "%s unexpected FSIO stack size at return: %d", msg, stack.size());
return NAN; return NAN;
} }
return stack.pop(); return stack.pop();