libmoost
/home/mhx/git/github/libmoost/include/moost/compiler/pragmas/message.hpp File Reference

Abstraction of compiler pragma message directive. More...

#include <boost/preprocessor/stringize.hpp>
Include dependency graph for message.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define pragma_msgtype__(type, msg)   pragma_message__(type ": " msg)
 Compile time message pragma.
#define pragma_warn__(msg)   pragma_msgtype__("warning", msg)
 Compile time warning message pragma.

Detailed Description

Abstraction of compiler pragma message directive.

Copyright © 2008-2013 Last.fm Limited

This file is part of libmoost.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author:
Ricky Cormier
Version:
See version.h (N/A if it doesn't exist)
Date:
2012-06-18

Definition in file message.hpp.


Define Documentation

#define pragma_msgtype__ (   type,
  msg 
)    pragma_message__(type ": " msg)

Compile time message pragma.

Parameters:
msgThe message to be displayed
 pragma_message__("some message")

Compile time message pragma with message type

Parameters:
typeThe message type
msgThe message to be displayed
 pragma_message_type__("warning", "some message")

Definition at line 73 of file message.hpp.

#define pragma_warn__ (   msg)    pragma_msgtype__("warning", msg)

Compile time warning message pragma.

Parameters:
msgThe message to be displayed
 pragma_warning_msg__("some message")

Definition at line 87 of file message.hpp.