Added a "fmt_id" define, to prevent that no '_' is placed in front
of an identifier longer than 8 characters.
This commit is contained in:
parent
2672c87f68
commit
a43d257715
|
@ -21,6 +21,8 @@
|
||||||
#define con_ilb(x) fprintf(codefile,".data4\t%s\n",x)
|
#define con_ilb(x) fprintf(codefile,".data4\t%s\n",x)
|
||||||
#define con_dlb(x) fprintf(codefile,".data4\t%s\n",x)
|
#define con_dlb(x) fprintf(codefile,".data4\t%s\n",x)
|
||||||
|
|
||||||
|
#define fmt_id(fr,to) sprintf(to, "_%s", fr)
|
||||||
|
|
||||||
#define modhead ".sect .text;.sect .rom;.sect .data;.sect .bss\n"
|
#define modhead ".sect .text;.sect .rom;.sect .data;.sect .bss\n"
|
||||||
|
|
||||||
#define id_first '_'
|
#define id_first '_'
|
||||||
|
|
Loading…
Reference in a new issue