I have a large amount of code that works like that - ie. an included file defines the macro which is then expanded in files that include that header file.
(It probably makes no difference, but I use the .h suffix for included 'header' files to make it more obvious)
Also, if you think about it, (and if you use it), doing something like:
Code:
.macpack generic
pulls in macros from the standard cc65 library for you.
But (as above), make sure you have the .include line
before you use the included macro your main file.
So double check the order they're included and declared it, but it all should work just fine.
-Gordon
_________________
--
Gordon Henderson.
See my
Ruby 6502 and 65816 SBC projects here:
https://projects.drogon.net/ruby/