To bind eax in c++ do:
then in script:
If CONTEXT is dependent on ARCH, i fear you might have to replicate that using similar macros for you binding. As in
// bind all the stuff that winnt.h would add to CONTEXT in this case
Apart from that it might be advisable to:
So ChaiScript has a proper name for your type.
PS: Being a C-Struct or being defined where-ever doesn’t matter as long as the proper header, winnt.h in this case, is included. You do not have to redeclare it or anything. Just have bindings for everything (member-vars,member-functions, constructors…) you want to use.