fix paths and introduce exceptions in SWIG and android yap

This commit is contained in:
Vítor Santos Costa
2014-07-15 00:54:45 -05:00
parent e1fc397cc1
commit 6ba88f8cc0
10 changed files with 87 additions and 57 deletions

View File

@@ -627,16 +627,3 @@ YAPQuery *YAPEngine::query( char *s ) {
YAPQuery *n = new YAPQuery( s );
return n;
}
YAPQuery *YAPEngine::safeQuery( char *s ) {
try {
YAPQuery *n = new YAPQuery( s );
n->setFlag( PL_Q_CATCH_EXCEPTION );
n->resetFlag( PL_Q_PASS_EXCEPTION );
return n;
}
catch (YAPError yerr) {
yerror = yerr;
return 0;
}
}