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 785b082

Browse files
Update lmathlib.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 c90ee2c commit 785b082

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/lua/lmathlib.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ LUAMOD_API int luaopen_math (lua_State *L) {
405405
lua_setfield(L, -2, "maxinteger");
406406
lua_pushinteger(L, LUA_MININTEGER);
407407
lua_setfield(L, -2, "mininteger");
408+
lua_setglobal(L, "math");
408409
return 1;
409410
}
410411

0 commit comments

Comments
(0)

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