Add rpm macro context as a global table-like entity named 'm' for typing convenience into the Lua environment.
Support basic access with table indexing syntaxes (m[k] and m.k), undefined macros return nil here. As a specialty, parametric macros are returned as native callable variadic Lua functions, arguments are converted to strings. You can view, comment on, or merge this pull request online at: https://github.com/rpm-software-management/rpm/pull/1398 -- Commit Summary -- * Implement a table-like shortcut to rpm macros in Lua -- File Changes -- M doc/manual/lua.md (22) M rpmio/rpmlua.c (72) M tests/rpmmacro.at (18) -- Patch Links -- https://github.com/rpm-software-management/rpm/pull/1398.patch https://github.com/rpm-software-management/rpm/pull/1398.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/1398
_______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint