add argc,argv typemap for ruby

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8903 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-27 04:12:08 +00:00
commit 7804d39b22

View file

@ -3,7 +3,28 @@ Version 1.3.29 (In progress)
02/26/2006: mmatus
[Ruby] add argcargv.i library file.
Use it as follow:
%include argcargv.i
%apply (int ARGC, char **ARGV) { (size_t argc, const char **argv) }
%inline {
int mainApp(size_t argc, const char **argv)
{
return argc;
}
}
then in the ruby side:
args = ["asdf", "asdf2"]
n = mainApp(args);
This is the similar to the python version Lib/python/argcargv.i
02/24/2006: mgossage
Small update Lua documents on troubleshooting problems