Sha256: f39d3b0b7a20855da20e748e9a28653290df0b810fec2f889056f8018c71ec44
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module Bones # Class copyin/out class Copy attr_accessor :name, :domain, :deadline, :direction, :id def initialize(name,domain,deadline,direction,id) @name = name @domain = domain @deadline = deadline @direction = direction @id = id end def get_definition(array_definition,type) array_definition = '' if type == 'free' || type == 'alloc' 'void bones_'+type+'_'+@id+'_'+@name+'('+array_definition+');' end def get_function_call(type) 'bones_'+type+'_'+@id+'_'+@name+'();' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bones-compiler-1.3.1 | lib/bones/copy.rb |