DCode

Covers Engine 2.0.0

pcall

Call a function in protected mode.

Syntax

pcall(function_name, ...)

Available in

  • File scope
  • Executable DCode bodies

Native C++

Lua only. This feature has no Native C++ code-generation binding.

Example

pcall(function_name, arg)