*
* @see will_return()
*/
-void *mock(void);
+uintmax_t mock(void);
#else
#define mock() _mock(__func__, __FILE__, __LINE__)
#endif
* @see mock()
* @see mock_ptr_type()
*/
-void *mock_type(#type);
+#type mock_type(#type);
#else
#define mock_type(type) ((type) mock())
#endif
* @see mock()
* @see mock_type()
*/
-void *mock_ptr_type(#type);
+type mock_ptr_type(#type);
#else
#define mock_ptr_type(type) ((type) (uintptr_t) mock())
#endif
* @see mock()
* @see will_return_count()
*/
-void will_return(#function, void *value);
+void will_return(#function, uintmax_t value);
#else
#define will_return(function, value) \
_will_return(#function, __FILE__, __LINE__, \
*
* @see mock()
*/
-void will_return_count(#function, void *value, int count);
+void will_return_count(#function, uintmax_t value, int count);
#else
#define will_return_count(function, value, count) \
_will_return(#function, __FILE__, __LINE__, \
*
* @param[in] #function The function which should return the given value.
*
- * @param[in] value The value to be returned by mock().
+ * @param[in] #value The value to be returned by mock().
*
* This is equivalent to:
* @code
* @see will_return_count()
* @see mock()
*/
-void will_return_always(#function, void *value);
+void will_return_always(#function, uintmax_t value);
#else
#define will_return_always(function, value) \
will_return_count(function, (value), -1)