3 ;; JSCL is free software: you can redistribute it and/or
4 ;; modify it under the terms of the GNU General Public License as
5 ;; published by the Free Software Foundation, either version 3 of the
6 ;; License, or (at your option) any later version.
8 ;; JSCL is distributed in the hope that it will be useful, but
9 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
10 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 ;; General Public License for more details.
13 ;; You should have received a copy of the GNU General Public License
14 ;; along with JSCL. If not, see <http://www.gnu.org/licenses/>.
16 (/debug "loading ffi.lisp!")
18 (define-setf-expander oget (object key &rest keys)
19 (let* ((keys (cons key keys))
21 (g!keys (mapcar (lambda (s)
26 (values `(,g!object ,@g!keys)
29 `(oset ,g!value ,g!object ,@g!keys)
30 `(oget ,g!object ,@g!keys))))
32 (define-setf-expander oget* (object key &rest keys)
33 (let* ((keys (cons key keys))
35 (g!keys (mapcar (lambda (s)
40 (values `(,g!object ,@g!keys)
43 `(oset* ,g!value ,g!object ,@g!keys)
44 `(oget* ,g!object ,@g!keys))))