diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-18 20:07:42 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-11-18 20:07:42 +0000 |
commit | a06523dd0f46c2536e070e58c9288419bbcbf22e (patch) | |
tree | 1c49523bf609b18ee5e6a529e18e34438b62bfad /crawl-ref/source/mapmark.h | |
parent | ff00ffd9da330a94bd282bcc127157672e589a9a (diff) | |
download | crawl-ref-a06523dd0f46c2536e070e58c9288419bbcbf22e.tar.gz crawl-ref-a06523dd0f46c2536e070e58c9288419bbcbf22e.zip |
Added lua_datum to wrap the common task of retaining references to Lua objects in the Lua registry.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7477 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapmark.h')
-rw-r--r-- | crawl-ref/source/mapmark.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/mapmark.h b/crawl-ref/source/mapmark.h index 3efc40e591..07d89331be 100644 --- a/crawl-ref/source/mapmark.h +++ b/crawl-ref/source/mapmark.h @@ -16,6 +16,7 @@ #include "luadgn.h" #include <map> #include <string> +#include <memory> ////////////////////////////////////////////////////////////////////////// // Map markers @@ -117,6 +118,8 @@ public: throw (std::string); private: bool initialised; + std::auto_ptr<lua_datum> marker_table; + private: void check_register_table(); bool get_table() const; |