mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-10-09 10:27:26 +00:00
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@5 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
+4
-15
@@ -1,15 +1,4 @@
|
||||
|
||||
class CMock
|
||||
attr_accessor :mocks_path, :includes, :interface_parser
|
||||
|
||||
def initialize(mocks_path='mocks', includes=[], interface_parser=nil)
|
||||
@mocks_path = mocks_path
|
||||
@includes = includes
|
||||
@interface_parser = interface_parser
|
||||
end
|
||||
|
||||
def generate(module_header)
|
||||
@interface_parser.extract_interface(module_header)
|
||||
end
|
||||
|
||||
end
|
||||
$here = File.dirname __FILE__
|
||||
require "#{$here}/cmock_setup"
|
||||
require "#{$here}/cmock_generator"
|
||||
require "#{$here}/c_file_parser"
|
||||
|
||||
Reference in New Issue
Block a user