Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape slash in lua_getinfo #17

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Typo in `lua_gethookcount(3)`.
- Description in `lua_close(3)`.
- Description in `luaL_newmetatable(3)`.
- Broken source code formatting in `lua_getinfo(3)`.

[Unreleased]: https://github.com/ligurio/luac-manual-pages/compare/0.1.2...master

Expand Down
1 change: 0 additions & 1 deletion man3/luaL_newmetatable.3
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
.Ft int
.Fn luaL_newmetatable "lua_State *L" "const char *tname"
.Sh DESCRIPTION
.Fn luaL_newmetatable
If the registry already has the key
.Fa tname ,
returns 0. Otherwise, creates a new table to be used as a metatable for
Expand Down
2 changes: 1 addition & 1 deletion man3/lua_getinfo.3
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ was defined, you can write the following code:
lua_Debug ar;
lua_getfield(L, LUA_GLOBALSINDEX, "f"); /* get global 'f' */
lua_getinfo(L, ">S", &ar);
printf("%d\n", ar.linedefined);
printf("%d\&\\n", ar.linedefined);
.Ed
.Pp
Each character in the string what selects some fields of the structure ar to be
Expand Down
Loading