<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Eliminating Dependencies of mocked files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32880/eliminating-dependencies-of-mocked-files</link><description>Hello, 
 
 
 We are mocking our code but we are having difficulties eliminating the dependency of other files the mocked file includes due to the mocked header including the original header which includes several other files. 
 
 
 
 
 The error we are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Apr 2018 13:45:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32880/eliminating-dependencies-of-mocked-files" /><item><title>RE: Eliminating Dependencies of mocked files</title><link>https://devzone.nordicsemi.com/thread/127070?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 13:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9baf77f-0dae-4015-860f-6d6ab098d60b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not that familiar with cmock myself,&amp;nbsp;unfortunately. You might get a more definite answer on their github repo.&lt;/p&gt;
&lt;p&gt;I guess you can implement empty functions (guarding them with ifdef&amp;#39;s), as one user reports here:&amp;nbsp;&lt;a href="https://github.com/ThrowTheSwitch/CMock/issues/150"&gt;https://github.com/ThrowTheSwitch/CMock/issues/150&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Based on the above thread, you&amp;nbsp;are likely to&amp;nbsp;have issues mock&amp;#39;ing static inline functions as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>