File: msgpack_errors.h

package info (click to toggle)
php-msgpack 2.0.2%2B0.5.7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,192 kB
  • ctags: 729
  • sloc: ansic: 6,789; xml: 702; php: 18; makefile: 1
file content (17 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#ifndef MSGPACK_ERRORS_H
#define MSGPACK_ERRORS_H

#define MSGPACK_NOTICE(...)                \
    if (MSGPACK_G(error_display)) {        \
        zend_error(E_NOTICE, __VA_ARGS__); \
    }

#define MSGPACK_WARNING(...)                \
    if (MSGPACK_G(error_display)) {         \
        zend_error(E_WARNING, __VA_ARGS__); \
    }

#define MSGPACK_ERROR(...) zend_error(E_ERROR, __VA_ARGS__)

#endif