Difference between revisions of "Xpcall"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === `pcall` function f with new error handler err. The operations related to coroutines comprise a sub-lib...")
 
Line 5: Line 5:
 
The operations related to coroutines comprise a sub-library of the basic library and come inside the table coroutine.
 
The operations related to coroutines comprise a sub-library of the basic library and come inside the table coroutine.
 
<source lang="lua">
 
<source lang="lua">
= xpcall(ferr,)
+
xpcall(f,err)
 
</source>
 
</source>
'''f:''' (function) pcall function ''''''<br/>
+
'''f''': (function) pcall function ''''''<br/>
'''err:''' (string) error message ''''''<br/>
+
'''err''': (string) error message ''''''<br/>

Revision as of 11:21, 23 August 2018

Available since: Gideros 2011.6

Description

`pcall` function f with new error handler err. The operations related to coroutines comprise a sub-library of the basic library and come inside the table coroutine.

 xpcall(f,err)

'f: (function) pcall function '
'err: (string) error message '