mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-13 14:47:51 +00:00
- strip "extern" keyword when mocking externs
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@206 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
@@ -19,6 +19,7 @@ class CMockHeaderParser
|
||||
@local_as_void = @treat_as_void
|
||||
@verbosity = cfg.verbosity
|
||||
@treat_externs = cfg.treat_externs
|
||||
@c_strippables += ['extern'] if (@treat_externs == :include) #we'll need to remove the attribute if we're allowing externs
|
||||
end
|
||||
|
||||
def parse(name, source)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
- :callback
|
||||
:callback_after_arg_check: true
|
||||
#:callback_include_count: false
|
||||
:treat_externs: :include
|
||||
|
||||
:systest:
|
||||
:types: |
|
||||
@@ -18,7 +19,7 @@
|
||||
|
||||
:mockable: |
|
||||
#include "CException.h"
|
||||
void foo(POINT_T* a);
|
||||
extern void foo(POINT_T* a);
|
||||
POINT_T* bar(void);
|
||||
void fooa(POINT_T a[]);
|
||||
void foos(const char * a);
|
||||
|
||||
Reference in New Issue
Block a user