Difference between revisions of "Xpcall"
From GiderosMobile
| m (Text replacement - "<source" to "<syntaxhighlight") | |||
| Line 5: | Line 5: | ||
| === Description === | === Description === | ||
| '''pcall''' function ''f'' with a new error handler ''err''. | '''pcall''' function ''f'' with a new error handler ''err''. | ||
| − | < | + | <syntaxhighlight lang="lua"> | 
| xpcall(f,err) | xpcall(f,err) | ||
| </source> | </source> | ||
Revision as of 14:32, 13 July 2023
Available since: Gideros 2011.6
Class: (global)
Description
pcall function f with a new error handler err. <syntaxhighlight lang="lua"> xpcall(f,err) </source>
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
