Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
cb3deaaa
Commit
cb3deaaa
authored
1 year ago
by
Logan Aerl Arias
Browse files
Options
Downloads
Patches
Plain Diff
Update lauxlib.h
lauxlib.h: mark luaL_error as a REPORT function
parent
626ac069
No related branches found
No related tags found
2 merge requests
!2355
fix newer versions of mixerx
,
!2261
check if LUA field exists before accessing it
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/blua/lauxlib.h
+21
-1
21 additions, 1 deletion
src/blua/lauxlib.h
with
21 additions
and
1 deletion
src/blua/lauxlib.h
+
21
−
1
View file @
cb3deaaa
...
@@ -31,6 +31,26 @@ LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
...
@@ -31,6 +31,26 @@ LUALIB_API void (luaL_setn) (lua_State *L, int t, int n);
/* extra error code for `luaL_load' */
/* extra error code for `luaL_load' */
#define LUA_ERRFILE (LUA_ERRERR+1)
#define LUA_ERRFILE (LUA_ERRERR+1)
/* Compiler-specific attributes and other macros */
#ifdef __GNUC__ // __attribute__ ((X))
#if ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && defined (__MINGW32__) // MinGW, >= GCC 4.1
#if 0 //defined (__USE_MINGW_ANSI_STDIO) && __USE_MINGW_ANSI_STDIO > 0
#define FUNCREPORT __attribute__ ((format(gnu_printf, 2, 3)))
#elif
(
__GNUC__
>
4
)
||
(
__GNUC__
==
4
&&
__GNUC_MINOR__
>=
4
)
// >= GCC 4.4
#define FUNCREPORT __attribute__ ((format(ms_printf, 2, 3)))
#else
#define FUNCREPORT __attribute__ ((format(printf, 2, 3)))
#endif
#else
#define FUNCREPORT __attribute__ ((format(printf, 2, 3)))
#endif
#endif
#ifndef FUNCREPORT
#define FUNCREPORT
#endif
typedef
struct
luaL_Reg
{
typedef
struct
luaL_Reg
{
const
char
*
name
;
const
char
*
name
;
...
@@ -65,7 +85,7 @@ LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname);
...
@@ -65,7 +85,7 @@ LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname);
LUALIB_API
void
*
(
luaL_checkudata
)
(
lua_State
*
L
,
int
ud
,
const
char
*
tname
);
LUALIB_API
void
*
(
luaL_checkudata
)
(
lua_State
*
L
,
int
ud
,
const
char
*
tname
);
LUALIB_API
void
(
luaL_where
)
(
lua_State
*
L
,
int
lvl
);
LUALIB_API
void
(
luaL_where
)
(
lua_State
*
L
,
int
lvl
);
LUALIB_API
int
(
luaL_error
)
(
lua_State
*
L
,
const
char
*
fmt
,
...);
LUALIB_API
FUNCREPORT
int
(
luaL_error
)
(
lua_State
*
L
,
const
char
*
fmt
,
...);
LUALIB_API
int
(
luaL_checkoption
)
(
lua_State
*
L
,
int
narg
,
const
char
*
def
,
LUALIB_API
int
(
luaL_checkoption
)
(
lua_State
*
L
,
int
narg
,
const
char
*
def
,
const
char
*
const
lst
[]);
const
char
*
const
lst
[]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment