flat assembler
Message board for the users of flat assembler.
Index
> Macroinstructions > Make FASM understand "C" typedefs |
Author |
|
revolution 15 Feb 2011, 19:01
Code: DWORD p1; Code: .p1 rd 1 As for char*, well you can make char a macro and have it search for the presence or absence of * and make the define accordingly. |
|||
15 Feb 2011, 19:01 |
|
alorent 15 Feb 2011, 19:07
revolution, thanks for the fast reply.
So, you think that it's imposible to make it in a way that C also understand the structure? That is, if I change things for FASM, the C module might not understand the "typedef". Thanks! |
|||
15 Feb 2011, 19:07 |
|
revolution 15 Feb 2011, 19:09
I don't know about the impossibility or not. Actually, I was trying to offer suggestions to help you to get it working.
|
|||
15 Feb 2011, 19:09 |
|
revolution 15 Feb 2011, 19:11
Code: macro DWORD var { .#var rd 1} macro char param {match * y,param \{ ... \} } |
|||
15 Feb 2011, 19:11 |
|
edfed 15 Feb 2011, 19:21
Quote: I was wondering if it's possible to create a macro to fully understand C typedefs. i am wondering if it's possble to a C coder to understand the simplicity of asm data definitions. |
|||
15 Feb 2011, 19:21 |
|
JohnFound 15 Feb 2011, 20:38
edfed wrote: i am wondering if it's possble to a C coder to understand the simplicity of asm data definitions. Me too. |
|||
15 Feb 2011, 20:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.