class FFIDB::Exporters::Lisp

Code generator for the Common Lisp programming language (using CFFI).

@see common-lisp.net/project/cffi/

Constants

TYPE_MAP

Public Instance Methods

finish() click to toggle source
# File lib/ffidb/exporters/lisp.rb, line 13
def finish
  puts self.render_template('lisp.erb')
end

Protected Instance Methods

param_type(c_type) click to toggle source

@param [FFIDB::Type] c_type @return [String]

Calls superclass method FFIDB::Exporter#param_type
# File lib/ffidb/exporters/lisp.rb, line 32
def param_type(c_type)
  ':' << super(c_type)
end
struct_type(c_type) click to toggle source

@param [FFIDB::Type] c_type @return [String]

# File lib/ffidb/exporters/lisp.rb, line 22
def struct_type(c_type)
  case
    when c_type.array? then [c_type.array_type.to_s.to_sym, :count, c_type.array_size].map(&:inspect).join(' ')
    else self.param_type(c_type)
  end
end