From: Sam S. <sam...@gm...> - 2005-11-17 12:27:10
|
On Nov 17, 2005, at 2:31 AM, Dan Potter wrote: > > Might be a better way to do this to 'using' them into the proper > namespace. Other places inside Tiki use these and could benefit > from the speed boost. I think there are non-macro functions you > could do this with. e.g. > The only problem is that pch.h is including kos.h, which includes dc/ fmath.h before any other header files. Once those macros are defined, you can't use them as a function name or gcc will barf. xylogmover.cpp was the only cpp file that was calling the functions as Tiki::Math:fsin() instead of using namespace Tiki::math; fsin(); I considered removing kos.h from pch.h, and just including the headers from KOS that are actually needed, but kos/include/assert.h ends up including kos.h anyway, so it was kind of pointless. -Sam |