mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-28 12:28:21 +01:00
26 lines
532 B
Smalltalk
26 lines
532 B
Smalltalk
|
Class {
|
||
|
#name : #DiyaFFIBase,
|
||
|
#superclass : #DiyaBaseObject,
|
||
|
#category : #'Diya-Core'
|
||
|
}
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
DiyaFFIBase class >> checkSymbol [
|
||
|
^self subclassResponsibility
|
||
|
]
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
DiyaFFIBase class >> libNames [
|
||
|
^self subclassResponsibility
|
||
|
]
|
||
|
|
||
|
{ #category : #accessing }
|
||
|
DiyaFFIBase class >> moduleName [
|
||
|
self libNames do:[:aName|
|
||
|
(ExternalAddress loadSymbol: self checkSymbol from: aName) ifNotNil: [
|
||
|
^ aName
|
||
|
].
|
||
|
].
|
||
|
self error: 'Unable to find FFI library (', self checkSymbol, ')'.
|
||
|
]
|