OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor lite flags
[hengband/hengband.git]
/
src
/
h-define.h
diff --git
a/src/h-define.h
b/src/h-define.h
index
cf2bbc4
..
554fa67
100644
(file)
--- a/
src/h-define.h
+++ b/
src/h-define.h
@@
-137,6
+137,10
@@
# define ESCAPE '\033'
#endif
+/*
+ * Refer to the member at offset of structure
+ */
+#define atoffset(TYPE, STRUCT_PTR, OFFSET) (*(TYPE*)(((char*)STRUCT_PTR) + (OFFSET)))
#endif