diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-07-22 20:40:26 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-07-22 20:40:26 +0400 |
commit | b6b352e0b72237f7892d72c893cad1bfb0f1337d (patch) | |
tree | 043fca777a812f27d29a690fb5dc99ee06d69099 /source/creator | |
parent | 9e502dae6f05b15575e6882c803f59d989cfdb0e (diff) |
- got fed up with not being able to put a breakpoint on MEM_
errors, switched MEM_set_error_stream to MEM_set_error_callback
that calls a function to print result instead of just giving
a FILE *
Note: requires intern recompile
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index a4b932611ff..1d9e97f05c4 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -589,10 +589,15 @@ static void error_cb(char *err) error("%s", err); } +static void mem_error_cb(char *errorStr) +{ + fprintf(stderr, errorStr); +} + void setCallbacks(void) { /* Error output from the alloc routines: */ - MEM_set_error_stream(stderr); + MEM_set_error_callback(mem_error_cb); /* BLI_blenlib: */ |