Skip to content

Commit

Permalink
man3: luaL_loadbuffer.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed Jul 27, 2022
1 parent 64a7a90 commit 814b4a8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions man3/luaL_loadbuffer.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.Dd $Mdocdate: July 24 2022 $
.Dt LUAL_LOADBUFFER 3
.Os
.Sh NAME
.Nm luaL_loadbuffer
.Nd loads a buffer as a Lua chunk
.Sh SYNOPSIS
.In lauxlib.h
.Ft int
.Fn luaL_loadbuffer "lua_State *L" "const char *buff" "size_t sz" "const char *name"
.Sh DESCRIPTION
.Fn luaL_loadbuffer
loads a buffer as a Lua chunk.
This function uses
.Xr lua_load 3
to load the chunk in the buffer pointed to by
.Fa buff
with size
.Fa sz .
.Pp
This function returns the same results as
.Xr lua_load 3 .
.Fa name
is the chunk name,
used for debug information and error messages.
.Sh HISTORY
The
.Fn luaL_loadbuffer
manual page was written by Sergey Bronnikov.

0 comments on commit 814b4a8

Please sign in to comment.