Re: Reducing the weight of g_return_if_fail()



On Tuesday, April 13, 2004, at 03:29 AM, Steffen Gutmann wrote:

I don't know how G_LOG_DOMAIN is defined, but would moving it into the g_return_if_fail_internal function save another four bytes or so?

It's a preprocessor macro, usually defined in your project's CFLAGS (i.e., the compiler command line) to give it your definition for only your source files. So, like __PRETTY_FUNCTION__ or __FILE__ & __LINE__, it can't go into the compiled library function or it will cease to work correctly (you'd always get the definition used for the library, not for your code).


--
Brian: If i recall correctly, this is the physics department.
Chris: That explains all that gravity.
	-- Family Guy, "The Story on Page One"




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]