Skip to content

Commit 17dae87

Browse files
committed
Added error code.
1 parent f5032f9 commit 17dae87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lua.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ module lua
6666
integer(kind=c_int), parameter, public :: LUA_GCGEN = 10
6767
integer(kind=c_int), parameter, public :: LUA_GCINC = 11
6868

69-
! Thread status.
69+
! Error codes.
7070
integer(kind=c_int), parameter, public :: LUA_OK = 0
7171
integer(kind=c_int), parameter, public :: LUA_YIELD = 1
7272
integer(kind=c_int), parameter, public :: LUA_ERRRUN = 2
7373
integer(kind=c_int), parameter, public :: LUA_ERRSYNTAX = 3
7474
integer(kind=c_int), parameter, public :: LUA_ERRMEM = 4
7575
integer(kind=c_int), parameter, public :: LUA_ERRERR = 5
76+
integer(kind=c_int), parameter, public :: LUA_ERRFILE = LUA_ERRERR + 1
7677

7778
public :: lua_arith
7879
public :: lua_call

0 commit comments

Comments
 (0)