Difference between revisions of "Xpcall"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
xpcall(f,err)
 
xpcall(f,err)
</source>
+
</syntaxhighlight>
  
 
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.

Revision as of 10:39, 5 October 2023

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