mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 12:18:18 +00:00
Tricky preprocessor... try again
This commit is contained in:
parent
1561ad2ca6
commit
c91b409caa
@ -584,8 +584,11 @@ static void launch_write_stream_thread(shout_context_t *context)
|
||||
}
|
||||
|
||||
#define TC_BUFFER_SIZE 1024 * 32
|
||||
#define STR(_x) #_x
|
||||
#define MPGERROR() {err = "MPG123 Error at " __FILE__ ":" STR(__LINE__) "."; mpg123err = mpg123_strerror(context->mh); goto error; }
|
||||
|
||||
#define CONCAT_LOCATION(_x,_y) _x ":" #_y
|
||||
#define MAKE_LOCATION(_x,_y) CONCAT_LOCATION(_x,_y)
|
||||
#define HERE MAKE_LOCATION(__FILE__, __LINE__)
|
||||
#define MPGERROR() {err = "MPG123 Error at " HERE "."; mpg123err = mpg123_strerror(context->mh); goto error; }
|
||||
static switch_status_t shout_file_open(switch_file_handle_t *handle, const char *path)
|
||||
{
|
||||
shout_context_t *context;
|
||||
|
Loading…
x
Reference in New Issue
Block a user