pcallwithenv
functionimplementedavailable in: camelot
Calls a function in protected mode with a temporarily replaced function environment.
The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.
Parameters
| name | type | description |
|---|---|---|
func | string | The function to be called. |
env | table | A custom environment table to apply to the function prior to calling. |
... | unknown |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | ok | boolean | True if the function was called without error. |
| 2 | ... | unknown |
In wowlua's emulated client
implementedwowlua models the system behind it. what the statuses mean
sources
Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.