source: branches/0.22.x/abcl/examples/java-to-lisp-2/lispfunctions.lisp

Last change on this file was 11384, checked in by vvoutilainen, 16 years ago

Add Id tags and thus keyword properties.

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1;;; lispfunctions.lisp
2;;;
3;;; Copyright (C) 2008 Ville Voutilainen
4;;; $Id: lispfunctions.lisp 11384 2008-11-08 09:27:29Z vvoutilainen $
5;;;
6;;; This program is free software; you can redistribute it and/or
7;;; modify it under the terms of the GNU General Public License
8;;; as published by the Free Software Foundation; either version 2
9;;; of the License, or (at your option) any later version.
10;;;
11;;; This program is distributed in the hope that it will be useful,
12;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with this program; if not, write to the Free Software
18;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20; param comes from java, so accessing it require
21; calling jobject-lisp-value on it
22(defun void-function (param)
23  (format t "in void-function, param: ~a~%" (jobject-lisp-value param)))
24
25; params come from java, so accessing them require
26; calling jobject-lisp-value on them
27(defun int-function (jparam1 jparam2)
28  (let* ((param1 (jobject-lisp-value jparam1))
29   (param2 (jobject-lisp-value jparam2))
30   (result (+ param1 param2)))
31    (format t "in int-function, params: ~a ~a~%result: ~a~%" 
32      param1 param2 result) 
33    result))
Note: See TracBrowser for help on using the repository browser.