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
9a2fb845
Commit
9a2fb845
authored
Nov 04, 2021
by
Johny Mattsson
Committed by
Johny Mattsson
Nov 04, 2021
Browse files
Fix broken sjson module init.
parent
6db8c434
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/sjson.c
View file @
9a2fb845
...
@@ -1037,7 +1037,7 @@ LROT_END(sjson, NULL, 0)
...
@@ -1037,7 +1037,7 @@ LROT_END(sjson, NULL, 0)
LUALIB_API
int
luaopen_sjson
(
lua_State
*
L
)
{
LUALIB_API
int
luaopen_sjson
(
lua_State
*
L
)
{
luaL_rometatable
(
L
,
"sjson.decoder"
,
LROT_TABLEREF
(
sjson_decoder_map
));
luaL_rometatable
(
L
,
"sjson.decoder"
,
LROT_TABLEREF
(
sjson_decoder_map
));
luaL_rometatable
(
L
,
"sjson.encoder"
,
LROT_TABLEREF
(
sjson_encoder_map
));
luaL_rometatable
(
L
,
"sjson.encoder"
,
LROT_TABLEREF
(
sjson_encoder_map
));
return
1
;
return
0
;
}
}
NODEMCU_MODULE
(
SJSON
,
"sjson"
,
sjson
,
luaopen_sjson
);
NODEMCU_MODULE
(
SJSON
,
"sjson"
,
sjson
,
luaopen_sjson
);
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