projects
/
clnl
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code reformat - Macro for functions implement commands to return :undefined
[clnl]
/
src
/
main
/
nvm
/
base.lisp
diff --git
a/src/main/nvm/base.lisp
b/src/main/nvm/base.lisp
index 7fec1df58b86f5cef20f5c37cd98b8fc093939da..1a80dc3fa87deea9f4bed2cb8432e232b4fed5e7 100644
(file)
--- a/
src/main/nvm/base.lisp
+++ b/
src/main/nvm/base.lisp
@@
-38,6
+38,9
@@
DESCRIPTION:
(stop (s) (declare (ignore s)) :stop)
(death (d) (declare (ignore d)) :death)))
(stop (s) (declare (ignore s)) :stop)
(death (d) (declare (ignore d)) :death)))
+(defmacro defcommand (name args docstring &rest body)
+ `(defun ,name ,args ,docstring ,@body :undefined))
+
(defstruct turtle who breed color heading xcor ycor (label "") label-color size shape own-vars)
(defstruct patch color xcor ycor own-vars turtles)
(defstruct turtle who breed color heading xcor ycor (label "") label-color size shape own-vars)
(defstruct patch color xcor ycor own-vars turtles)