Module: CType::Specifiers

Included in:
Type
Defined in:
lib/caphir/ctype.rb

Instance Method Summary collapse

Instance Method Details

#add_specifier(s) ⇒ Object



294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# File 'lib/caphir/ctype.rb', line 294

def add_specifier(s)
	case s
		when 'inline'
			set_inline
		when 'typedef'
			set_typedef
		when 'extern'
			set_extern
		when 'static'
			set_static
		when 'auto'
			set_auto
		when 'register'
			set_register
		else
			raise "unexpected storage class specifier #{s}"
	end
end