Added support for RPC arguments of type *char
Fork of mbed-rpc by
Revision 17:6264f59dcd22, committed 2018-05-01
- Comitter:
- Nydrel
- Date:
- Tue May 01 07:43:52 2018 +0000
- Parent:
- 12:3b049dde55d7
- Commit message:
- Added support for receiving arguments of type *char
Changed in this revision
Arguments.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3b049dde55d7 -r 6264f59dcd22 Arguments.cpp --- a/Arguments.cpp Tue Mar 08 09:15:16 2016 +0000 +++ b/Arguments.cpp Tue May 01 07:43:52 2018 +0000 @@ -84,6 +84,11 @@ return argv[index]; } +template<> char* Arguments::getArg<char*>(void) { + index++; + return argv[index]; +} + template<> char Arguments::getArg<char>(void) { index++; return *argv[index];