| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2007,2008,2009 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009 Red Hat, Inc. |
| 3 * Copyright © 2011,2012 Google, Inc. | 3 * Copyright © 2011,2012 Google, Inc. |
| 4 * | 4 * |
| 5 * This is part of HarfBuzz, a text shaping library. | 5 * This is part of HarfBuzz, a text shaping library. |
| 6 * | 6 * |
| 7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
| 8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
| 9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
| 10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 /* Makes class uncopyable. Use in private: section. */ | 605 /* Makes class uncopyable. Use in private: section. */ |
| 606 #define NO_COPY(T) \ | 606 #define NO_COPY(T) \ |
| 607 T (const T &o); \ | 607 T (const T &o); \ |
| 608 T &operator = (const T &o) | 608 T &operator = (const T &o) |
| 609 | 609 |
| 610 | 610 |
| 611 /* Debug */ | 611 /* Debug */ |
| 612 | 612 |
| 613 | 613 |
| 614 /* HB_NDEBUG disables some sanity checks that are very safe to disable and |
| 615 * should be disabled in production systems. If NDEBUG is defined, enable |
| 616 * HB_NDEBUG; but if it's desirable that normal assert()s (which are very |
| 617 * light-weight) to be enabled, then HB_DEBUG can be defined to disable |
| 618 * the costlier checks. */ |
| 619 #ifdef NDEBUG |
| 620 #define HB_NDEBUG |
| 621 #endif |
| 622 |
| 614 #ifndef HB_DEBUG | 623 #ifndef HB_DEBUG |
| 615 #define HB_DEBUG 0 | 624 #define HB_DEBUG 0 |
| 616 #endif | 625 #endif |
| 617 | 626 |
| 618 static inline bool | 627 static inline bool |
| 619 _hb_debug (unsigned int level, | 628 _hb_debug (unsigned int level, |
| 620 unsigned int max_level) | 629 unsigned int max_level) |
| 621 { | 630 { |
| 622 return level < max_level; | 631 return level < max_level; |
| 623 } | 632 } |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 if (unlikely (!_hb_options.i)) | 1011 if (unlikely (!_hb_options.i)) |
| 1003 _hb_options_init (); | 1012 _hb_options_init (); |
| 1004 | 1013 |
| 1005 return _hb_options.opts; | 1014 return _hb_options.opts; |
| 1006 } | 1015 } |
| 1007 | 1016 |
| 1008 /* Size signifying variable-sized array */ | 1017 /* Size signifying variable-sized array */ |
| 1009 #define VAR 1 | 1018 #define VAR 1 |
| 1010 | 1019 |
| 1011 #endif /* HB_PRIVATE_HH */ | 1020 #endif /* HB_PRIVATE_HH */ |
| OLD | NEW |