;;;; Programmers: Kevin M. Rosenberg and John DeSoi
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: libraries.cl,v 1.3 2002/09/29 17:50:07 kevin Exp $
+;;;; $Id: libraries.cl,v 1.4 2002/09/30 01:57:32 kevin Exp $
;;;;
;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and John DeSoi
;in MCL calling this more than once for the same library does not do anything
#-openmcl
-(defmacro load-foreign-library (filename &key module supporting-libraries force-load)
+(defun load-foreign-library (filename &key module supporting-libraries force-load)
(declare (ignore module supporting-libraries force-load))
`(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*))))
; Note we are not dealing with OpenMCL's ability to close the library
#+openmcl
(defun load-foreign-library (filename &key module supporting-libraries force-load)
(declare (ignore module supporting-libraries force-load))
- `(let ((path (if (pathnamep ,filename) (namestring ,filename) ,filename)))
+ (let ((path (if (pathnamep filename) (namestring filename) filename)))
(when (stringp path)
(if (position path *loaded-libraries* :test #'string-equal)
t