From 01b86d78cc15ebb6f5ba687a17779b2bb2e9f4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Thu, 22 Mar 2012 21:42:11 +0000 Subject: [PATCH] support warning if matlab is not to be found. --- library/matlab.yap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/matlab.yap b/library/matlab.yap index 2dca91780..794864600 100644 --- a/library/matlab.yap +++ b/library/matlab.yap @@ -25,7 +25,10 @@ :- ensure_loaded(library(lists)). -:- load_foreign_files([matlab], ['eng','mx','ut'], init_matlab). +tell_warning :- + print_message(warning,functionality(matlab)). + +:- ( catch(load_foreign_files([matlab], ['eng','mx','ut'], init_matlab),_,fail) -> true ; tell_warning). matlab_eval_sequence(S) :- atomic_concat(S,S1),