z80asm add C line comment style

Requests for features
Post Reply
DarkSchneider
Member
Posts: 71
Joined: Sun Apr 01, 2018 4:02 pm

z80asm add C line comment style

Post by DarkSchneider »

I am trying to unify my definition files to avoid duplicating, it works well since z80asm included others C style directives, like #ifndef.
The issue is that cannot put comments, because C uses // or *//*. It could be nice if at least z80asm would suppport one of them to be able to comment the common header files.
DarkSchneider
Member
Posts: 71
Joined: Sun Apr 01, 2018 4:02 pm

Re: z80asm add C line comment style

Post by DarkSchneider »

OK just realized, for those with the same problem, just put a semicolon at start of the line, so in your common C header file:

Code: Select all

;//your comment
#ifndef SOMETHING
#define SOMETHING 33
#endif
And works.
Post Reply