flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
595 stars 40 forks source link

Use @_cdecl instead of @_silgen_name where possible #267

Closed rikner closed 5 years ago

rikner commented 5 years ago

Fixes #

Type of change:

Motivation (current vs expected behavior)

When passing more than two parameters to a function via JNI, we discovered that the values of the third and following parameters don't make any sense. Using @_cdecl instead of @_silgen_name fixes this. This PR does some preventive maintenance in order to avoid future errors.

Please check if the PR fulfills these requirements