mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 01:28:42 +00:00
don't override macro name (MODLANG-68)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8915 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c5281059b7
commit
0b35b58e79
@ -1,21 +1,21 @@
|
|||||||
#include "freeswitch_python.h"
|
#include "freeswitch_python.h"
|
||||||
|
|
||||||
#define sanity_check(x) do { if (!session) { switch_log_printf(SWITCH_CHANNEL_LOG,SWITCH_LOG_ERROR, "session is not initalized\n"); return x;}} while(0)
|
#define sanity_check(x) do { if (!session) { switch_log_printf(SWITCH_CHANNEL_LOG,SWITCH_LOG_ERROR, "session is not initalized\n"); return x;}} while(0)
|
||||||
#define init_vars() do { caller_profile.source = "mod_python"; swapstate = S_SWAPPED_IN; } while(0)
|
#define py_init_vars() do { caller_profile.source = "mod_python"; swapstate = S_SWAPPED_IN; } while(0)
|
||||||
|
|
||||||
PySession::PySession():CoreSession()
|
PySession::PySession():CoreSession()
|
||||||
{
|
{
|
||||||
init_vars();
|
py_init_vars();
|
||||||
}
|
}
|
||||||
|
|
||||||
PySession::PySession(char *uuid):CoreSession(uuid)
|
PySession::PySession(char *uuid):CoreSession(uuid)
|
||||||
{
|
{
|
||||||
init_vars();
|
py_init_vars();
|
||||||
}
|
}
|
||||||
|
|
||||||
PySession::PySession(switch_core_session_t *new_session):CoreSession(new_session)
|
PySession::PySession(switch_core_session_t *new_session):CoreSession(new_session)
|
||||||
{
|
{
|
||||||
init_vars();
|
py_init_vars();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user