Re: variadic macros
"Brett Bibby" <[email protected]> Tue, 21 Dec 2004 18:42:10 +0800
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Organization | GameBrains |
| Message-ID | <[email protected]> |
> Paul Bleisch wrote:
> Depending on what you're after, you might find that the __noop
> intrinsic will help you out.
>
That's new, thanks. I don't think I can use it still though as I need to
insert some parameters before calling the debug function.
This is what we have on other platforms:
#define MPE_SHELL_ERROR_LOG(...) \
MpiShellLogTextAdd(__FILE__, \
(MpeChar *)__func__, \
__LINE__, \
MPE_SHELL_LOG_FLAG_ERROR, \
__VA_ARGS__)
I want to insert the file, func and line number. (BTW, does windows allow
__func__ ?)
Thanks again,
Brett
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555