diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-12-08 20:09:26 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-12-08 20:09:26 +0800 |
commit | 0fe35b907addf1c066cb4d7c717bb23f9f2e7be4 (patch) | |
tree | ce23037c4256b7c1ec4561d7477c33b328aa81e8 /mobile/doc.go | |
parent | 3fc7c978277051391f8ea7831559e9f4f83c3166 (diff) | |
download | go-tangerine-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar go-tangerine-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar.gz go-tangerine-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar.bz2 go-tangerine-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar.lz go-tangerine-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar.xz go-tangerine-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.tar.zst go-tangerine-0fe35b907addf1c066cb4d7c717bb23f9f2e7be4.zip |
mobile: iOS naming and API fixes for generators and Swift (#3408)
* build: modify the iOS namespace to iGeth (gomobile limitation)
* mobile: assign names to return types for ObjC wrapper
* mobile: use more expanded names for iOS/Swift API
Diffstat (limited to 'mobile/doc.go')
-rw-r--r-- | mobile/doc.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile/doc.go b/mobile/doc.go index 50cc7f4f8..89be470cc 100644 --- a/mobile/doc.go +++ b/mobile/doc.go @@ -51,6 +51,10 @@ // should not be provided to limit the remote code complexity. Arrays should be // avoided as much as possible since they complicate bounds checking. // +// If a method has multiple return values (e.g. some return + an error), those +// are generated as output arguments in ObjC. To avoid weird generated names like +// ret_0 for them, please always assign names to output variables if tuples. +// // Note, a panic *cannot* cross over language boundaries, instead will result in // an undebuggable SEGFAULT in the process. For error handling only ever use error // returns, which may be the only or the second return. |