This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

anyone figured this one out

in a mixed environment I have a common .h which inlude things like
#ifdef CCODE
struct RALPH
#endif

so far so good.

now this, which, of course does not work:
#ifdef CCODE
struct RALPH
#endif
#define ralphsize sizeof (RALPH)

in other words, my assembler code need know the size of the structure (ralphsize) and the assembler can not handle structures in the .h

anyone have a trick beyond the obvious:
#define ralphsize 47 // sizeof (RALPH) make sure to change when


Erik

Parents Reply Children
No data