Steven Perron
208d3132e6
Cast __LINE__ to size_t ( #2661 )
...
Fixes #2648
2019-06-07 13:06:42 -04:00
dan sinclair
58a6876cee
Rewrite include guards ( #1793 )
...
This CL rewrites the include guards to make PRESUBMIT.py include guard
check happy.
2018-08-03 08:05:33 -04:00
David Neto
01b28750bf
Avoid snprintf warning in GCC 7.1
...
Tries to fix https://github.com/KhronosGroup/SPIRV-Tools/issues/642
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80655
2017-05-08 15:58:24 -04:00
Lei Zhang
dc6e4834d6
Clean up header dependency.
2016-09-22 18:15:23 -04:00
Lei Zhang
3767e32b1f
Add two more utility functions for sending errors to consumer.
2016-09-21 16:19:18 -04:00
Lei Zhang
74afb5d112
Change parameter name from file to source in Log() and Logf().
2016-09-21 16:13:54 -04:00
Lei Zhang
6849a3cefd
Use C style names for MessageLevel.
2016-09-21 12:44:37 -04:00
Lei Zhang
80eb0793c9
Change to use enum instead of enum class for MessageLevel.
...
This allows us to create C interface with MessageLevel later.
2016-09-21 11:30:41 -04:00
Lei Zhang
869440ebd4
Let SPIRV_ASSERT() exit the program if the assertion fails.
2016-09-16 13:14:57 -04:00
Lei Zhang
bfd7cd6d6e
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.
2016-09-16 09:56:34 -04:00