From 7805b591dd30887d95411e4868dbd61b80cbcf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 27 Feb 2010 13:24:32 +0100 Subject: [PATCH] Sync --- library/dfhack.i | 3 ++- output/stones.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/library/dfhack.i b/library/dfhack.i index bf10d4339..14723a8e2 100644 --- a/library/dfhack.i +++ b/library/dfhack.i @@ -2,8 +2,9 @@ %include "std_string.i" %include "std_vector.i" %include "stdint.i" + +/* This goes to the header of the wrapper code */ %{ -/* Includes the header in the wrapper code */ #define LINUX_BUILD #define SWIG_WRAPPER #include "DFTypes.h" diff --git a/output/stones.py b/output/stones.py index 8014a4aec..ee6be28cd 100644 --- a/output/stones.py +++ b/output/stones.py @@ -7,3 +7,4 @@ if x.Attach(): print "Dumping all stone" for matgloss in y: print "ID %s, name %s" % (matgloss.id, matgloss.name) + x.Detach()