forked from ligurio/lua-c-manual-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |