> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# iscclosure

> Returns whether the provided function is a C closure. The argument must be a function; passing any other type raises a type error. The function does not inspect executor ownership, source, bytecode, or upvalues.

<div className="real-function-page">
  ```lua theme={null}
  iscclosure(func: function): boolean
  ```

  ## 参数

  <ParamField path={"func"} type={"function"} required>
    Function value passed to C closure check.
  </ParamField>

  ## 返回值

  <ResponseField name={"isCClosure"} type={"boolean"}>
    true when C closure check returns true for the function; otherwise false.
  </ResponseField>

  ## 示例

  Check whether a function is a C closure.

  ```lua theme={null}
  local result = iscclosure(print)
  print(result)
  ```
</div>
