meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
programming:c:ceedling [2021/04/22 12:02] niziakprogramming:c:ceedling [2021/04/22 12:07] niziak
Line 24: Line 24:
 # To prevent this: # To prevent this:
 #include "mock_cpu_hal.h #include "mock_cpu_hal.h
 +</code>
 +
 +===== extern keyword =====
 +
 +By default ''cmock'' will ignore ''extern'' function (is not mocking them). To enable mocking of ''extern'' functions:
 +<code yaml>
 +:cmock:
 +  :treat_externs: :include
 </code> </code>