Module: CType::Qualifiers

Included in:
Base, Pointer
Defined in:
lib/caphir/ctype.rb

Overview

Primitive

Instance Method Summary collapse

Instance Method Details

#add_qualifier(q) ⇒ Object


278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/caphir/ctype.rb', line 278

def add_qualifier(q)
	case q
		when 'const'
			set_const
		when 'volatile'
			set_volatile
		when 'restrict'
			set_restrict
		else
			raise "invalid type qualifier #{q}" # shouldn't get here
	end
end