File size: 428 Bytes
8f3f8db
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
*vmmakerjs
isFloatIn: aCodeGen
	| type |
	type := aCodeGen typeOfVariable: name.
	type isNil ifTrue: [^false].
	(type includes: $*) ifTrue: [^false].
	(type beginsWithAnyOf: #('register ' 'static ')) ifTrue: [type := type copyAfter: $ ].
	(type beginsWithAnyOf: #('double ' 'float ')) ifTrue: [^true].
	(type beginsWithAnyOf: #('int ' 'unsigned ' 'sqInt ' 'usqInt ' 'var ')) ifTrue: [^false].
	self halt: 'need to handle ', type