> ## 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.

# isnewcclosure

> Returns whether the provided function is a newcclosure-created C closure. The first argument must be a function; passing a non-function raises a type error. Documented usage is a single function argument; extra arguments are not part of the supported signature.

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

  ## Argumen

  <ParamField path={"func"} type={"function"} required>
    Function to check. Use a single function argument.
  </ParamField>

  ## Return

  <ResponseField name={"isNewCClosure"} type={"boolean"}>
    true when the function is a newcclosure-created C closure; otherwise false.
  </ResponseField>

  ## Contoh

  Check whether a function is a wrapped C closure.

  ```lua theme={null}
  local function target()
  end

  local wrapped = newcclosure(target)

  print(isnewcclosure(target))
  print(isnewcclosure(wrapped))
  ```
</div>
