Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
233bdc63
"tests/vscode:/vscode.git/clone" did not exist on "4c14e8668cdfa6a967fd3be6e0a159d1156b7ef6"
Commit
233bdc63
authored
Oct 04, 2016
by
Johny Mattsson
Browse files
Fixed Kconfig macro use for Lua debug module (oops).
parent
991965e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/lua/Makefile.projbuild
View file @
233bdc63
...
@@ -4,5 +4,4 @@ CFLAGS+=\
...
@@ -4,5 +4,4 @@ CFLAGS+=\
-DLUA_OPTIMIZE_MEMORY
=
2
\
-DLUA_OPTIMIZE_MEMORY
=
2
\
-DMIN_OPT_LEVEL
=
2
\
-DMIN_OPT_LEVEL
=
2
\
-DLUA_OPTIMIZE_DEBUG
=
$(CONFIG_LUA_OPTIMIZE_DEBUG)
\
-DLUA_OPTIMIZE_DEBUG
=
$(CONFIG_LUA_OPTIMIZE_DEBUG)
\
-DLUA_USE_STDIO
\
components/lua/ldblib.c
View file @
233bdc63
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#include "lauxlib.h"
#include "lauxlib.h"
#include "lualib.h"
#include "lualib.h"
#include "lrotable.h"
#include "lrotable.h"
#include "sdkconfig.h"
static
int
db_getregistry
(
lua_State
*
L
)
{
static
int
db_getregistry
(
lua_State
*
L
)
{
...
@@ -25,7 +25,7 @@ static int db_getregistry (lua_State *L) {
...
@@ -25,7 +25,7 @@ static int db_getregistry (lua_State *L) {
return
1
;
return
1
;
}
}
#ifndef CONFIG_LUA_
USE_
BUILTIN_DEBUG_MINIMAL
#ifndef CONFIG_LUA_BUILTIN_DEBUG_MINIMAL
static
int
db_getmetatable
(
lua_State
*
L
)
{
static
int
db_getmetatable
(
lua_State
*
L
)
{
luaL_checkany
(
L
,
1
);
luaL_checkany
(
L
,
1
);
...
@@ -85,7 +85,7 @@ static lua_State *getthread (lua_State *L, int *arg) {
...
@@ -85,7 +85,7 @@ static lua_State *getthread (lua_State *L, int *arg) {
return
L
;
return
L
;
}
}
}
}
#ifndef CONFIG_LUA_
USE_
BUILTIN_DEBUG_MINIMAL
#ifndef CONFIG_LUA_BUILTIN_DEBUG_MINIMAL
static
void
treatstackoption
(
lua_State
*
L
,
lua_State
*
L1
,
const
char
*
fname
)
{
static
void
treatstackoption
(
lua_State
*
L
,
lua_State
*
L1
,
const
char
*
fname
)
{
if
(
L
==
L1
)
{
if
(
L
==
L1
)
{
...
@@ -386,7 +386,7 @@ static int db_errorfb (lua_State *L) {
...
@@ -386,7 +386,7 @@ static int db_errorfb (lua_State *L) {
#define MIN_OPT_LEVEL 1
#define MIN_OPT_LEVEL 1
#include "lrodefs.h"
#include "lrodefs.h"
const
LUA_REG_TYPE
dblib
[]
=
{
const
LUA_REG_TYPE
dblib
[]
=
{
#ifndef CONFIG_LUA_
USE_
BUILTIN_DEBUG_MINIMAL
#ifndef CONFIG_LUA_BUILTIN_DEBUG_MINIMAL
{
LSTRKEY
(
"debug"
),
LFUNCVAL
(
db_debug
)},
{
LSTRKEY
(
"debug"
),
LFUNCVAL
(
db_debug
)},
{
LSTRKEY
(
"getfenv"
),
LFUNCVAL
(
db_getfenv
)},
{
LSTRKEY
(
"getfenv"
),
LFUNCVAL
(
db_getfenv
)},
{
LSTRKEY
(
"gethook"
),
LFUNCVAL
(
db_gethook
)},
{
LSTRKEY
(
"gethook"
),
LFUNCVAL
(
db_gethook
)},
...
@@ -394,7 +394,7 @@ const LUA_REG_TYPE dblib[] = {
...
@@ -394,7 +394,7 @@ const LUA_REG_TYPE dblib[] = {
{
LSTRKEY
(
"getlocal"
),
LFUNCVAL
(
db_getlocal
)},
{
LSTRKEY
(
"getlocal"
),
LFUNCVAL
(
db_getlocal
)},
#endif
#endif
{
LSTRKEY
(
"getregistry"
),
LFUNCVAL
(
db_getregistry
)},
{
LSTRKEY
(
"getregistry"
),
LFUNCVAL
(
db_getregistry
)},
#ifndef CONFIG_LUA_
USE_
BUILTIN_DEBUG_MINIMAL
#ifndef CONFIG_LUA_BUILTIN_DEBUG_MINIMAL
{
LSTRKEY
(
"getmetatable"
),
LFUNCVAL
(
db_getmetatable
)},
{
LSTRKEY
(
"getmetatable"
),
LFUNCVAL
(
db_getmetatable
)},
{
LSTRKEY
(
"getupvalue"
),
LFUNCVAL
(
db_getupvalue
)},
{
LSTRKEY
(
"getupvalue"
),
LFUNCVAL
(
db_getupvalue
)},
{
LSTRKEY
(
"setfenv"
),
LFUNCVAL
(
db_setfenv
)},
{
LSTRKEY
(
"setfenv"
),
LFUNCVAL
(
db_setfenv
)},
...
...
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