Skip to content

Commit

Permalink
man3: luaL_dofile.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ligurio committed Jul 27, 2022
1 parent e6048a7 commit 7a4e8c8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions man3/luaL_dofile.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.Dd $Mdocdate: July 24 2022 $
.Dt LUAL_DOFILE 3
.Os
.Sh NAME
.Nm luaL_dofile
.Nd loads and runs the given file
.Sh SYNOPSIS
.In lauxlib.h
.Ft int
.Fn luaL_dofile "lua_State *L" "const char *filename"
.Sh DESCRIPTION
.Fn luaL_dofile
loads and runs the given file.
It is defined as the following macro:
.Pp
.Bd -literal -offset indent -compact
(luaL_loadfile(L, filename) || lua_pcall(L, 0, LUA_MULTRET, 0))
.Ed
.Sh RETURN VALUES
It returns 0 if there are no errors or 1 in case of errors.
.Sh HISTORY
The
.Fn luaL_dofile
manual page was written by Sergey Bronnikov.

0 comments on commit 7a4e8c8

Please sign in to comment.