Assuming i've written something like this
I get this in the output:
My reasoning is that since the .include took place beforehand, they should be defined there and then.
-Is this correct?
-Is there a way to make ca65 accept macros included in a separate file?
-Or even better yet, is there a way to achieve the above by just doing it one time; hypothetically as opposed to every time a macro is called in?
Code:
(definitions here)
.include "personalmacros.s" ;file containing my personal library of macros
(code)
MACRONAME ;calling one of my macros
(more code)
.include "personalmacros.s" ;file containing my personal library of macros
(code)
MACRONAME ;calling one of my macros
(more code)
I get this in the output:
Code:
mainfile.s(row): Error: constant expression expected
personalmacros.s(row): Note: Macro was defined here.
personalmacros.s(row): Note: Macro was defined here.
My reasoning is that since the .include took place beforehand, they should be defined there and then.
-Is this correct?
-Is there a way to make ca65 accept macros included in a separate file?
-Or even better yet, is there a way to achieve the above by just doing it one time; hypothetically as opposed to every time a macro is called in?