diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-11-09 17:40:13 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:46:45 +0300 |
commit | bcc94857d7b9f092148dea4a2a9b90c592f43a75 (patch) | |
tree | 7bf4c63e9b28fd0b00dfdcffcada9bb2c637b935 /graphics/ft2_debug.hpp | |
parent | 771f47410fa67f271cf425a2b1a9a0ed6119b4ea (diff) |
renamed yg into graphics.
Diffstat (limited to 'graphics/ft2_debug.hpp')
-rw-r--r-- | graphics/ft2_debug.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/ft2_debug.hpp b/graphics/ft2_debug.hpp new file mode 100644 index 0000000000..a813a19c96 --- /dev/null +++ b/graphics/ft2_debug.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include <ft2build.h> +#include <freetype/ftgzip.h> +#include <freetype/ftcache.h> + +#include "../base/logging.hpp" + +#include FT_FREETYPE_H +#include FT_STROKER_H +#include FT_GLYPH_H + +namespace ft2_impl +{ + void CheckError(FT_Error error, char const * msg = 0); +} + +#define FTCHECK(x) do { FT_Error e = (x); ft2_impl::CheckError(e); } while (false) +#define FTCHECKRETURN(x, msg) \ + do { FT_Error e = (x); \ + if (e != 0) { ft2_impl::CheckError(e, msg); return; } } \ + while (false) |