halcon算子翻译——return

名称

return- 结束程序调用。

用法

return( : : : )

描述

retrun结束当前程序调用并返回到调用它的程序。 在调用程序中的调用完毕之后,程序将继续执行下一个活动的程序行(program execution is continued at the next active program line after the procedure call in the calling procedure.)。 如果当前程序是主程序,则程序执行结束,程序计数器跳转到程序结束。 请注意,除主程序外,每个子程序都必须至少包含一个可到达的return算子行,以便能够从调用中返回到程序。

结果

retrun总是返回2(H_MSG_TRUE)。

模块

Foundation

原文地址:https://www.cnblogs.com/xhiong/p/7823202.html