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

Commit

Permalink
Fixing marshalling of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Nov 6, 2020
1 parent c59e581 commit 19677b6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/ThreadedFFI-UFFI/FFIConst.extension.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Extension { #name : #FFIConst }

{ #category : #'*ThreadedFFI-UFFI' }
FFIConst >> emitArgument: aBuilder context: aContext [

aBuilder pushLiteral: self value
]

{ #category : #'*ThreadedFFI-UFFI' }
FFIConst >> tfExternalType [

Expand Down
6 changes: 0 additions & 6 deletions src/ThreadedFFI/TFCharType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ Class {
#category : #'ThreadedFFI-Types'
}

{ #category : #marshalling }
TFCharType >> emitMarshallToPrimitive: builder [

builder send: #asInteger
]

{ #category : #marshalling }
TFCharType >> marshallFromPrimitive: aValue [

Expand Down
6 changes: 6 additions & 0 deletions src/ThreadedFFI/TFDoubleType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Class {
#category : #'ThreadedFFI-Types'
}

{ #category : #writing }
TFDoubleType >> emitMarshallToPrimitive: builder [

builder send: #asFloat
]

{ #category : #reading }
TFDoubleType >> readValue: anExternalAddress offset: offset [

Expand Down
6 changes: 6 additions & 0 deletions src/ThreadedFFI/TFFloatType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Class {
#category : #'ThreadedFFI-Types'
}

{ #category : #reading }
TFFloatType >> emitMarshallToPrimitive: builder [

builder send: #asFloat
]

{ #category : #reading }
TFFloatType >> readValue: anExternalAddress offset: offset [

Expand Down
6 changes: 6 additions & 0 deletions src/ThreadedFFI/TFIntType.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Class {
#category : #'ThreadedFFI-Types'
}

{ #category : #marshalling }
TFIntType >> emitMarshallToPrimitive: builder [

builder send: #asInteger
]

{ #category : #reading }
TFIntType >> readValue: anExternalAddress offset: offset [

Expand Down

0 comments on commit 19677b6

Please sign in to comment.