Cyrille QUÉMIN
03/02/2019, 1:31 PMios32
and ios64
presets. And some methods thatI use have a different signatures in 32 where it uses Int
versus 64 where it uses Long
. Those method are ios specific only. If I declare the same method twice (in 32 and 64 source set) then obviously I get a multiple definition error. Is there a way to deal with this where I dont need to have `expected`/`actual` because android would have no need for it and therefore 'fake' implementation?olonho
03/02/2019, 1:37 PMconvert
when calling method in question and just share the codeCyrille QUÉMIN
03/02/2019, 1:54 PMmemcpy(nsData.refTo(0), bytes, size.toULong())
that is for 64 and memcpy(nsData.refTo(0), bytes, size.toUInt())
that is for 32Cyrille QUÉMIN
03/02/2019, 1:56 PMconvert
since it only convert from Long
and Double
to String
.
Even suing `actual`/`expected` creates : overload resolution ambiguity
error.olonho
03/02/2019, 2:08 PMsize.convert()
as an argumentsksk
03/02/2019, 2:10 PM#if
it simplify stuff by a lotCyrille QUÉMIN
03/02/2019, 2:26 PMCyrille QUÉMIN
03/02/2019, 2:27 PM#if
as it avoid duplication of code. You just have one extension method to call. better than duplicating the whole line. At least for numbers it is better I reckon.sksk
03/02/2019, 2:27 PMCyrille QUÉMIN
03/02/2019, 3:00 PMolonho
03/02/2019, 3:16 PMconvert
is compile-time intrinsic and is freeCyrille QUÉMIN
03/02/2019, 3:50 PM