Class: Emfrp::PrimTypeDef
- Inherits:
-
Object
- Object
- Emfrp::PrimTypeDef
- Defined in:
- lib/emfrp/compile/c/syntax_codegen.rb
Instance Method Summary collapse
Instance Method Details
#codegen(ct) ⇒ Object
235 236 237 |
# File 'lib/emfrp/compile/c/syntax_codegen.rb', line 235 def codegen(ct) # do nothing end |
#ref_name(ct) ⇒ Object
239 240 241 242 243 244 245 |
# File 'lib/emfrp/compile/c/syntax_codegen.rb', line 239 def ref_name(ct) ctype_foreign = self[:foreigns].find{|x| x[:language][:desc] == "c"} unless ctype_foreign raise "compile error: foreign for c is undefined in #{self[:name][:desc]}" end ctype_foreign[:desc] end |