Skip to content

Commit

Permalink
add missing methods (needed to handle callbacks)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanlm committed Oct 10, 2019
1 parent 7ade1e1 commit 2eb6b0e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/UnifiedFFI/FFIFunctionArgument.class.st
Expand Up @@ -15,6 +15,12 @@ FFIFunctionArgument >> asOldArraySpec [
self subclassResponsibility
]

{ #category : #accessing }
FFIFunctionArgument >> defaultReturnOnError [

^ self resolvedType defaultReturnOnError
]

{ #category : #resolution }
FFIFunctionArgument >> emitReturnArgument: anIRBuilder context: aContext [

Expand Down
8 changes: 7 additions & 1 deletion src/UnifiedFFI/FFITypeDeclaration.class.st
Expand Up @@ -38,13 +38,19 @@ FFITypeDeclaration >> asOldArraySpec [
^ { name . arity }
]

{ #category : #accessing }
FFITypeDeclaration >> defaultReturnOnError [

^ self resolvedType defaultReturnOnError
]

{ #category : #'emitting code' }
FFITypeDeclaration >> emitReturn: anIRBuilder resultTempVar: aString context: aContext [

^ resolvedType emitReturn: anIRBuilder resultTempVar: aString context: aContext
]

{ #category : #'as yet unclassified' }
{ #category : #accessing }
FFITypeDeclaration >> externalTypeWithArity [

^ resolvedType externalTypeWithArity
Expand Down

0 comments on commit 2eb6b0e

Please sign in to comment.