# lfunc.c File Reference

`#include <stddef.h>`
`#include "lua.h"`
`#include "lfunc.h"`
`#include "lgc.h"`
`#include "lmem.h"`
`#include "lobject.h"`
`#include "lstate.h"`

## Defines
#define | lfunc_c
#define | LUA_CORE
## Functions
Closure * | luaF_newCclosure (lua_State *L, int nelems, Table *e)
Closure * | luaF_newLclosure (lua_State *L, int nelems, Table *e)
UpVal * | luaF_newupval (lua_State *L)
UpVal * | luaF_findupval (lua_State *L, StkId level)
static void | unlinkupval (UpVal *uv)
void | luaF_freeupval (lua_State *L, UpVal *uv)
void | luaF_close (lua_State *L, StkId level)
Proto * | luaF_newproto (lua_State *L)
void | luaF_freeproto (lua_State *L, Proto *f)
void | luaF_freeclosure (lua_State *L, Closure *c)
const char * | luaF_getlocalname (const Proto *f, int local_number, int pc)

## Define Documentation

#define lfunc_c

#define LUA_CORE

## Function Documentation

void luaF_close | ( | lua_State * | L,
|  | StkId | level |
| ) |  |  |

UpVal* luaF_findupval | ( | lua_State * | L,
|  | StkId | level |
| ) |  |  |

void luaF_freeclosure | ( | lua_State * | L,
|  | Closure * | c |
| ) |  |  |

void luaF_freeproto | ( | lua_State * | L,
|  | Proto * | f |
| ) |  |  |

void luaF_freeupval | ( | lua_State * | L,
|  | UpVal * | uv |
| ) |  |  |

const char* luaF_getlocalname | ( | const Proto * | f,
|  | int | local_number,
|  | int | pc |
| ) |  |  |

Closure* luaF_newCclosure | ( | lua_State * | L,
|  | int | nelems,
|  | Table * | e |
| ) |  |  |

Closure* luaF_newLclosure | ( | lua_State * | L,
|  | int | nelems,
|  | Table * | e |
| ) |  |  |

Proto* luaF_newproto | ( | lua_State * | L | ) |

UpVal* luaF_newupval | ( | lua_State * | L | ) |

static void unlinkupval | ( | UpVal * | uv | ) | `[static]`