Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
c1d3b260
Commit
c1d3b260
authored
Apr 11, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: avoid leading underscores
parent
8378cde8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
modules/misc/lua/libs/misc.c
modules/misc/lua/libs/misc.c
+4
-3
modules/misc/lua/vlc.h
modules/misc/lua/vlc.h
+2
-2
No files found.
modules/misc/lua/libs/misc.c
View file @
c1d3b260
...
@@ -47,19 +47,20 @@
...
@@ -47,19 +47,20 @@
#include "../vlc.h"
#include "../vlc.h"
#include "../libs.h"
#include "../libs.h"
#undef vlclua_set_this
/*****************************************************************************
/*****************************************************************************
* Internal lua<->vlc utils
* Internal lua<->vlc utils
*****************************************************************************/
*****************************************************************************/
void
__
vlclua_set_this
(
lua_State
*
L
,
vlc_object_t
*
p_this
)
void
vlclua_set_this
(
lua_State
*
L
,
vlc_object_t
*
p_this
)
{
{
lua_pushlightuserdata
(
L
,
__
vlclua_set_this
);
lua_pushlightuserdata
(
L
,
vlclua_set_this
);
lua_pushlightuserdata
(
L
,
p_this
);
lua_pushlightuserdata
(
L
,
p_this
);
lua_rawset
(
L
,
LUA_REGISTRYINDEX
);
lua_rawset
(
L
,
LUA_REGISTRYINDEX
);
}
}
vlc_object_t
*
vlclua_get_this
(
lua_State
*
L
)
vlc_object_t
*
vlclua_get_this
(
lua_State
*
L
)
{
{
lua_pushlightuserdata
(
L
,
__
vlclua_set_this
);
lua_pushlightuserdata
(
L
,
vlclua_set_this
);
lua_rawget
(
L
,
LUA_REGISTRYINDEX
);
lua_rawget
(
L
,
LUA_REGISTRYINDEX
);
vlc_object_t
*
p_this
=
(
vlc_object_t
*
)
lua_topointer
(
L
,
-
1
);
vlc_object_t
*
p_this
=
(
vlc_object_t
*
)
lua_topointer
(
L
,
-
1
);
lua_pop
(
L
,
1
);
lua_pop
(
L
,
1
);
...
...
modules/misc/lua/vlc.h
View file @
c1d3b260
...
@@ -91,8 +91,8 @@ static inline const char *luaL_nilorcheckstring( lua_State *L, int narg )
...
@@ -91,8 +91,8 @@ static inline const char *luaL_nilorcheckstring( lua_State *L, int narg )
return
luaL_checkstring
(
L
,
narg
);
return
luaL_checkstring
(
L
,
narg
);
}
}
#define vlclua_set_this(a, b) __vlclua_set_this(a, VLC_OBJECT(b))
void
vlclua_set_this
(
lua_State
*
,
vlc_object_t
*
);
void
__vlclua_set_this
(
lua_State
*
,
vlc_object_t
*
);
#define vlclua_set_this(a, b) vlclua_set_this(a, VLC_OBJECT(b))
vlc_object_t
*
vlclua_get_this
(
lua_State
*
);
vlc_object_t
*
vlclua_get_this
(
lua_State
*
);
/*****************************************************************************
/*****************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment