Skip to content

feat: add luaA_newlib#4072

Open
cnjhb wants to merge 1 commit intoawesomeWM:masterfrom
cnjhb:newlib
Open

feat: add luaA_newlib#4072
cnjhb wants to merge 1 commit intoawesomeWM:masterfrom
cnjhb:newlib

Conversation

@cnjhb
Copy link
Copy Markdown
Contributor

@cnjhb cnjhb commented Mar 2, 2026

luaA_newlib is modeled after luaL_newlib from Lua 5.2.
It can only be used for arrays, but it outperforms luaA_registerlib because it allows for pre-allocating the table.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.45%. Comparing base (39143f0) to head (dcfd5f6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4072   +/-   ##
=======================================
  Coverage   90.44%   90.45%           
=======================================
  Files         939      939           
  Lines       60346    60344    -2     
  Branches     1145     1145           
=======================================
+ Hits        54582    54586    +4     
+ Misses       5254     5251    -3     
+ Partials      510      507    -3     
Files with missing lines Coverage Δ
common/luaclass.c 87.50% <100.00%> (-0.21%) ⬇️
luaa.h 77.77% <ø> (ø)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants