Module: CType::Specifiers

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

Instance Method Summary collapse

Instance Method Details

#add_specifier(s) ⇒ Object



289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
# File 'lib/dbc/ctype.rb', line 289

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