You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An optional field name (symbol's name) to Foreign Function interface, which would default to the name of key in the function definitions in second parameter.
Why
Allows making a blocking variant and a non-blocking variant of same symbol. Such as a readFileSync and readFile.
Allows adding multiple overloads for same symbol. C functions can use varargs to do that. objc_msgSend for example.
Allows renaming the symbol in some other convention, such as snake_case to camelCase.
Suggestion
An optional field
name
(symbol's name) to Foreign Function interface, which would default to the name of key in the function definitions in second parameter.Why
readFileSync
andreadFile
.Example
The text was updated successfully, but these errors were encountered: