|
From: Marcus B. <ma...@la...> - 2008-10-28 13:41:36
|
Hi...
João Henrique Freitas wrote:
> How I can test a static funcion with cgreen?
With C semantics the static function cannot be see outside the file.
Either you place your tests inside your source code file (and
conditionally compile them) or you macro out the static part.
#ifdef TESTING
#define static_ extern
#else
#define static_ static
#undef
That's all I can think of. Sounds like a good FAQ item.
yours, Marcus
--
Marcus Baker
ma...@la...
|