[aisleriot] guile: Make def-save-var define & export



commit cf3aa47130369f4039994356088a00e0591763e5
Author: Christian Persch <chpe gnome org>
Date:   Fri Dec 2 22:10:42 2011 +0100

    guile: Make def-save-var define & export

 games/api.scm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/games/api.scm b/games/api.scm
index cd12be1..787d090 100644
--- a/games/api.scm
+++ b/games/api.scm
@@ -83,7 +83,7 @@
 ; the game. i.e. anything that isn't a constant. This is so undo/redo
 ; is transparent. It should behave otherwise identically to define.
 (defmacro-public def-save-var (nm value)
-  `(begin (define ,nm ,value)
+  `(begin (define-public ,nm ,value)
           (set! variable-list (cons ',nm variable-list))))
 
 ; create a 52 card deck (puts list of cards into DECK)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]