helping us trace CUSTOM_FSIO_STACK_SIZE
This commit is contained in:
parent
b49c5200b7
commit
bf41ec354e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue