Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
[bugfix] pic_debug broken in debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyuichi committed May 28, 2015
1 parent 00cde35 commit fa8226e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions extlib/benz/include/picrin.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,12 @@ pic_value pic_fwrite(pic_state *, pic_value, xFILE *);
void pic_printf(pic_state *, const char *, ...);
pic_value pic_display(pic_state *, pic_value);
pic_value pic_fdisplay(pic_state *, pic_value, xFILE *);
/* obsoleted macros */
#define pic_debug(pic,obj) pic_write(pic,obj)
#define pic_fdebug(pic,obj,file) pic_fwrite(pic,obj,file)

#if DEBUG
# include "picrin/port.h"
# define pic_debug(pic,obj) pic_fwrite(pic,obj,pic->xSTDERR->file)
# define pic_fdebug(pic,obj,file) pic_fwrite(pic,obj,file)
#endif

#if defined(__cplusplus)
}
Expand Down

0 comments on commit fa8226e

Please sign in to comment.