## liboildebug

liboildebug —

##

# Synopsis

    void        (*OilDebugPrintFunc)            (int level,
                                                 const char *file,
                                                 const char *func,
                                                 int line,
                                                 const char *format,
                                                 va_list varargs);
    enum        OilDebugLevel;
    #define     OIL_ERROR                       (...)
    #define     OIL_WARNING                     (...)
    #define     OIL_INFO                        (...)
    #define     OIL_DEBUG                       (...)
    #define     OIL_LOG                         (...)
    #define     OIL_FUNCTION
    #define     OIL_DEBUG_PRINT                 (level, ...)
    void        oil_debug_set_print_function    (OilDebugPrintFunc func);
    int         oil_debug_get_level             (void);
    void        oil_debug_set_level             (int level);

## Description

## Details

### OilDebugPrintFunc ()

    void        (*OilDebugPrintFunc)            (int level,
                                                 const char *file,
                                                 const char *func,
                                                 int line,
                                                 const char *format,
                                                 va_list varargs);

`level` : |
`file` : |
`func` : |
`line` : |
`format` : |
`varargs` : |

### enum OilDebugLevel

    typedef enum {
      OIL_DEBUG_NONE = 0,
      OIL_DEBUG_ERROR,
      OIL_DEBUG_WARNING,
      OIL_DEBUG_INFO,
      OIL_DEBUG_DEBUG,
      OIL_DEBUG_LOG
    } OilDebugLevel;

### OIL_ERROR()

    #define OIL_ERROR(...) OIL_DEBUG_PRINT(OIL_DEBUG_ERROR, __VA_ARGS__)

`...` : |

### OIL_WARNING()

    #define OIL_WARNING(...) OIL_DEBUG_PRINT(OIL_DEBUG_WARNING, __VA_ARGS__)

`...` : |

### OIL_INFO()

    #define OIL_INFO(...) OIL_DEBUG_PRINT(OIL_DEBUG_INFO, __VA_ARGS__)

`...` : |

### OIL_DEBUG()

    #define OIL_DEBUG(...) OIL_DEBUG_PRINT(OIL_DEBUG_DEBUG, __VA_ARGS__)

`...` : |

### OIL_LOG()

    #define OIL_LOG(...) OIL_DEBUG_PRINT(OIL_DEBUG_LOG, __VA_ARGS__)

`...` : |

### OIL_FUNCTION

    #define     OIL_FUNCTION

### OIL_DEBUG_PRINT()

    #define     OIL_DEBUG_PRINT(level, ...)

`level` : |
`...` : |

### oil_debug_set_print_function ()

    void        oil_debug_set_print_function    (OilDebugPrintFunc func);

`func` : |

### oil_debug_get_level ()

    int         oil_debug_get_level             (void);

Returns : |

### oil_debug_set_level ()

    void        oil_debug_set_level             (int level);

`level` : |