Document argc argv library
This commit is contained in:
parent
e4cdf9d98f
commit
6860e2bc03
5 changed files with 57 additions and 9 deletions
|
|
@ -9,7 +9,7 @@
|
|||
then from lua:
|
||||
|
||||
args = { "arg0", "arg1" }
|
||||
mainApp(args);
|
||||
mainApp(args)
|
||||
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
* ------------------------------------------------------------ */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue