Commit 867771ad authored by simonmar's avatar simonmar

[project @ 2002-07-24 09:44:37 by simonmar]

Add #offset for just grabbing the byte offset of a struct field.
parent 2e5a06c0
......@@ -66,6 +66,9 @@
#define hsc_ptr(t, f) \
printf ("(\\hsc_ptr -> hsc_ptr `plusPtr` %ld)", (long) offsetof (t, f));
#define hsc_offset(t, f) \
printf("(%ld)", (long) offsetof (t, f));
#define hsc_enum(t, f, print_name, x) \
print_name; \
printf (" :: %s\n", #t); \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment