Re: class Q_CORE_EXPORT QFlag

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

 



On 5/1/07, Shriramana Sharma <samjnaa@xxxxxxxxx> wrote:
I see many usages in the Qt sources like:

class Q_CORE_EXPORT QFlag
{
        <blah blah blah>
} ;

Isn't the word immediately next to the keyword class supposed to be the
class name? Q_CORE_EXPORT etc are certainly not class names. What are
they and how are they allowed in between the word class and the class name?

I searched my "Thinking in C++" for this but did not turn up an answer.
Please help.

It's a macro that expands with different results depending on the
platform and/or context.  For example when building Qt applications on
a Windows machine, it's redefined to Q_DECL_EXPORT which, in this
case, expands to __declspec(dllexport).  See
/src/corelib/global/qglobal.h in the Qt source tree.

	\Steve

--

Steve Grägert <steve@xxxxxxxxxxxx>
Jabber    xmpp://graegerts@xxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux