Skip to content

Commit

Permalink
clobal config.h + better debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
bef committed Jun 15, 2020
1 parent c3b5fc8 commit 8776410
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/php_snuffleupagus.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#define PHP_SNUFFLEUPAGUS_URL "https://github.com/nbs-system/snuffleupagus"
#define PHP_SNUFFLEUPAGUS_COPYRIGHT "LGPLv2"

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
Expand Down
4 changes: 0 additions & 4 deletions src/snuffleupagus.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
#include <glob.h>
#endif

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "php_snuffleupagus.h"

#ifndef ZEND_EXT_API
Expand Down
2 changes: 1 addition & 1 deletion src/sp_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#define sp_log_err(feature, ...) sp_log_msg(feature, SP_LOG_ERROR, __VA_ARGS__)
#define sp_log_warn(feature, ...) sp_log_msg(feature, SP_LOG_WARN, __VA_ARGS__)
#ifdef SP_DEBUG
#define sp_log_debug(...) sp_log_msg("DEBUG", SP_LOG_DEBUG, __VA_ARGS__)
#define sp_log_debug(fmt, ...) sp_log_msg("DEBUG", SP_LOG_DEBUG, "%s(): " fmt, __FUNCTION__, ##__VA_ARGS__)
#else
#define sp_log_debug(...)
#endif
Expand Down

0 comments on commit 8776410

Please sign in to comment.