;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: libraries.cl,v 1.1 2002/04/04 05:02:03 desoi Exp $
+;;;; $Id: libraries.cl,v 1.2 2002/04/05 04:10:38 desoi Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(defvar *loaded-libraries* nil
"List of foreign libraries loaded. Used to prevent reloading a library")
-
+;in MCL calling this more than once for the same library does not do anything
(defmacro load-foreign-library (filename &key module supporting-libraries)
(declare (ignore module supporting-libraries))
`(eval-when (:compile-toplevel :load-toplevel :execute)
- (when (ccl:add-to-shared-library-search-path ,filename t)
- (pushnew filename *loaded-libraries*))))
+ (when (ccl:add-to-shared-library-search-path ,filename t)
+ (pushnew ,filename *loaded-libraries*))))
(defun convert-supporting-libraries-to-string (libs)
(let (lib-load-list)