Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Adding hook extension so libraries can use it.... cof cof LibGit
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Nov 23, 2020
1 parent bb23f9a commit 3582bc2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/ThreadedFFI-UFFI/TFCalloutMethodBuilder.class.st
Expand Up @@ -18,8 +18,8 @@ TFCalloutMethodBuilder >> createFFICalloutLiteralFromSpec: functionSpec [
]

{ #category : #private }
TFCalloutMethodBuilder >> generateFFICallout: builder spec: functionSpec [
| properties ffiLibrary |
TFCalloutMethodBuilder >> generateFFICallout: builder spec: functionSpec ffiLibrary: ffiLibrary [
| properties |

"Copy the properties of the old method"

Expand All @@ -38,12 +38,6 @@ TFCalloutMethodBuilder >> generateFFICallout: builder spec: functionSpec [
pushLiteral: TFCalloutAPI;
pushLiteral: sender;
send: #trace: ].

"Obtain the library to use"
ffiLibrary := library ifNil: [sender receiver ffiLibrary].
ffiLibrary := ffiLibrary isClass
ifFalse: [ ffiLibrary asFFILibrary ]
ifTrue: [ ffiLibrary uniqueInstance ].

builder
pushLiteral: (ffiLibrary uniqueInstance runner).
Expand Down

0 comments on commit 3582bc2

Please sign in to comment.