Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d4b7988

Browse files
Update lstrlib.c
Added import for lua standard libraries: base (tostring(), `tonumber(), etc.) math table (insert(), sort(), remove(), ...) string (len(), match(), ...) Replaced print() function with the original version modified with Serial
1 parent 785b082 commit d4b7988

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/lua/lstrlib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,7 @@ static void createmetatable (lua_State *L) {
15791579
LUAMOD_API int luaopen_string (lua_State *L) {
15801580
luaL_newlib(L, strlib);
15811581
createmetatable(L);
1582+
lua_setglobal(L, "string");
15821583
return 1;
15831584
}
15841585

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /