Difference between revisions of "Xpcall"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2011.6<br/> | |
− | ''' | + | '''Class:''' [[(global)]]<br/> |
− | ''' | ||
− | === | + | === Description === |
− | + | '''pcall''' function ''f'' with a new error handler ''err''. | |
<source lang="lua"> | <source lang="lua"> | ||
xpcall(f,err) | xpcall(f,err) | ||
</source> | </source> | ||
− | === | + | The operations related to coroutines comprise a sub-library of the basic library and come inside the table coroutine. |
− | '''f''': (function) | + | |
− | '''err''': (string) | + | === Parameters === |
+ | '''f''': (function) pcall function<br/> | ||
+ | '''err''': (string) error message<br/> | ||
{{(global)}} | {{(global)}} |
Revision as of 23:30, 13 May 2022
Available since: Gideros 2011.6
Class: (global)
Description
pcall function f with a new error handler err.
xpcall(f,err)
The operations related to coroutines comprise a sub-library of the basic library and come inside the table coroutine.
Parameters
f: (function) pcall function
err: (string) error message