Skip to content

Instantly share code, notes, and snippets.

@ghassanpl
Last active January 10, 2017 09:13
Show Gist options
  • Save ghassanpl/47de5f7037641e0e6af76fffad52e222 to your computer and use it in GitHub Desktop.
Save ghassanpl/47de5f7037641e0e6af76fffad52e222 to your computer and use it in GitHub Desktop.
FFIModule add-method: { add-func: aSymbol
| sym |
sym = mDLL symbol: aSymbol;
sym not-nil assert: "Symbol not found: ", aSymbol to-string;
mFunMap at: aSymbol put: sym;
^ sym;
};
FFIModule add-method: { add-func: aSymbol
| sym |
sym = mDLL symbol: aSymbol.
sym not-nil assert: "Symbol not found: ", aSymbol to-string.
mFunMap at: aSymbol put: sym.
^ sym.
}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment