summaryrefslogtreecommitdiff
path: root/Lua API.html
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-04-10 10:34:03 +0400
committerAlexander Gavrilov2012-04-10 10:34:03 +0400
commit0e0740fddf26a849c97c26bd8e6dcb6cf58b9bf9 (patch)
tree0665da84702bd69e270e769fcd96b15a1967987c /Lua API.html
parent585de77489f8325fc40807723017fb52e1618a62 (diff)
downloaddfhack-0e0740fddf26a849c97c26bd8e6dcb6cf58b9bf9.tar.gz
dfhack-0e0740fddf26a849c97c26bd8e6dcb6cf58b9bf9.tar.bz2
dfhack-0e0740fddf26a849c97c26bd8e6dcb6cf58b9bf9.tar.xz
Stop printall(df.global) from breaking if there are unknown addresses.
Diffstat (limited to 'Lua API.html')
-rw-r--r--Lua API.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html
index 569940f5..82943fad 100644
--- a/Lua API.html
+++ b/Lua API.html
@@ -395,6 +395,10 @@ Every structured field access produces a new userdata instance.</p>
<p>Returns an iterator for the sequence of actual C++ field names
and values. Fields are enumerated in memory order. Methods and
lua wrapper properties are not included in the iteration.</p>
+<p><strong>WARNING</strong>: a few of the data structures (like ui_look_list)
+contain unions with pointers to different types with vtables.
+Using pairs on such structs is an almost sure way to crash with
+an access violation.</p>
</li>
<li><p class="first"><tt class="docutils literal">ref._kind</tt></p>
<p>Returns one of: <tt class="docutils literal">primitive</tt>, <tt class="docutils literal">struct</tt>, <tt class="docutils literal">container</tt>,