Document argc argv library

This commit is contained in:
William S Fulton 2022-05-15 19:12:39 +01:00
commit 6860e2bc03
5 changed files with 57 additions and 9 deletions

View file

@ -9,7 +9,7 @@
then from lua:
args = { "arg0", "arg1" }
mainApp(args);
mainApp(args)
* ------------------------------------------------------------ */

View file

@ -7,15 +7,14 @@
%inline %{
int mainApp(size_t argc, const char **argv)
{
int mainApp(size_t argc, const char **argv) {
return argc;
}
then from ruby:
args = ["asdf", "asdf2"]
mainApp(args);
$args = ["asdf", "asdf2"]
mainApp(args)
* ------------------------------------------------------------ */