A.D.A. Amiga Demoscene Archive

        Welcome guest!

  

  

  

log in with SceneID

  

Demos Amiga Demoscene Archive Forum / Coding / structs in asm and c

 

Author Message
dalton
Member
#1 - Posted: 23 Sep 2013 20:00
Reply Quote
Does anyone know any good way too keep struct definitions up to date between vbcc and vasm? I tend to just replicate c structs with rs-statements in asm, but ideally I would like the compiler to do this automatically. To save time and to avoid mistakes. Any ideas?

Cheers
Dalton
nonarkitten
Member
#2 - Posted: 28 Aug 2018 02:40
Reply Quote
Yes, what you're looking for is a C header converter. Just add a step in the build process to have all .h files converted to .i files before assembling any files. Some examples here:

http://bogdro.evai.pl/inne/#cconv

 

  Please log in to comment

  

  

  

 

A.D.A. Amiga Demoscene Archive, Version 3.0