Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ft2_debug.hpp « graphics - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a813a19c9637d15647f1e759274b1f4693e3af45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)