Page 2 of 2
Re: use of ....
Posted: Thu Jun 26, 2008 5:45 am
by suthers
Thanks, but I develop on XP....
But I'll be swapping it or a linux distro sometime during the holiday...
Thanks,
Jules
Re: use of ....
Posted: Sun Jun 29, 2008 2:33 am
by pcmattman
suthers wrote:Thanks, but I develop on XP....
Unless you're using some obfuscated development environment you will have stdarg.h on Windows.
Re: use of ....
Posted: Wed Jul 30, 2008 8:11 pm
by AndrewAPrice
You could use the preprocessor so you're actually passing a reference to a vector of arguments in.
Re: use of ....
Posted: Thu Jul 31, 2008 2:27 am
by JamesM
That would however mean he'd have to implement the STL in his operating system...
Re: use of ....
Posted: Thu Jul 31, 2008 2:33 am
by AndrewAPrice
Or write a quick templated linked list class
(though you require C++).
One where each object can be of a different class, much like an array of Ogre::Any class. Ogre::Any is a class in the OGRE rendering engine that you can attach anything to. This isn't required if you already know the type to add.
If you're using C you can also whip up a similar linked list struct.
Re: use of ....
Posted: Thu Jul 31, 2008 3:42 pm
by JamesM
The OGRE::Any class (as well as the Boost equivalent) requires RTTI too, if I'm not mistaken...?
Re: use of ....
Posted: Fri Aug 01, 2008 3:16 am
by AndrewAPrice
As far as I know, no since it uses templates. Here's the code for it:
http://www.ogre3d.org/docs/api/html/Ogr ... ource.html