MCPcopy Create free account
hub / github.com/DFHack/dfhack / IsSuccess

Function IsSuccess

library/include/LuaTools.h:203–205  ·  view source on GitHub ↗

* Check if the status is a success, i.e. LUA_OK or LUA_YIELD. */

Source from the content-addressed store, hash-verified

201 * Check if the status is a success, i.e. LUA_OK or LUA_YIELD.
202 */
203 inline bool IsSuccess(int status) {
204 return (status == LUA_OK || status == LUA_YIELD);
205 }
206
207 // Internal helper
208 template<int (*cb)(lua_State*,int,lua_KContext)>

Callers 9

dfhack_lineedit_contFunction · 0.85
safecall_contFunction · 0.85
resume_helperFunction · 0.85
dfhack_coresumeFunction · 0.85
dfhack_saferesumeFunction · 0.85
dfhack_coauxwrapFunction · 0.85
SafeResumeMethod · 0.85
resume_query_loopFunction · 0.85
dfhack_cleanup_contFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected