Commit eb313efc authored by sletz's avatar sletz
Browse files

More robust external API.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1843 0c269be4-1314-0410-8aa9-9f06e86f4224
parent b15a3e34
......@@ -29,20 +29,23 @@ namespace Jack
// Used for external C API (JackAPI.cpp)
JackGraphManager* GetGraphManager()
{
assert(JackLibGlobals::fGlobals->fGraphManager);
return JackLibGlobals::fGlobals->fGraphManager;
if (JackLibGlobals::fGlobals)
return JackLibGlobals::fGlobals->fGraphManager;
else
return NULL;
}
JackEngineControl* GetEngineControl()
{
assert(JackLibGlobals::fGlobals->fEngineControl);
return JackLibGlobals::fGlobals->fEngineControl;
if (JackLibGlobals::fGlobals)
return JackLibGlobals::fGlobals->fEngineControl;
else
return NULL;
}
JackSynchro** GetSynchroTable()
{
assert(JackLibGlobals::fGlobals);
return JackLibGlobals::fGlobals->fSynchroTable;
return (JackLibGlobals::fGlobals ? JackLibGlobals::fGlobals->fSynchroTable : 0);
}
//-------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment