Add utility macros for logging messages.
authorLei Zhang <antiagainst@google.com>
Thu, 8 Sep 2016 15:43:48 +0000 (11:43 -0400)
committerLei Zhang <antiagainst@google.com>
Fri, 16 Sep 2016 13:56:34 +0000 (09:56 -0400)
commitbfd7cd6d6edd6f4d23cedf916171ced9b038b85b
treefd94e22912332df5cb07b72d1d8715aabcc48a76
parent755f97f534153519e15636502f1e2d6f4f48cda6
Add utility macros for logging messages.

Add the following macros for logging purpose:
* SPIRV_ASSERT
* SPIRV_DEBUG
* SPIRV_UNIMPLEMENTED
* SPIRV_UNREACHABLE

The last two is always turned on, while the first two can only
be turned on in debug build.
CMakeLists.txt
source/opt/CMakeLists.txt
source/opt/log.h [new file with mode: 0644]
test/CMakeLists.txt
test/test_log.cpp [new file with mode: 0644]