Jim Carlock wrote:
....
> In the end, I seek to include ONLY ONE file, by using
> the %include directive more than once.
???
....
> I don't see a %exit directive nor a %jump directive.
I don't know, Jim. Seems to me you're trying to treat included material
as a "program", when it's essentially an "automated cut and paste".
Define "WHAT_I_WANT", %ifdef WHAT_I_WANT, %endif... and the rest of it
won't be included - nothing to %jump over, nothing to %exit. Even easier
is to *not* combine everything into one file, and %include the ones you
need... perhaps "collecting" them:
%include "thisprogram.inc"
....
; the program
;----------
; thisprogram.inc:
%include "stdio.inc"
%include "sockets.inc"
....
But you should be able to do it like:
%include "everything.inc"
%define NEED_STDIO
%define NEED_SOCKETS
....
I've seen Windows include files that work like that. I didn't understand
what the point was then, either :) (actually, the point was to speed up
Nasm!)
You can specify "-d", "-p" and "-I" options on the command line, or as
an environment variable, to control what gets included, if that helps.
I don't see the need for "execution"-type directives... but maybe I
don't understand what you're trying to do...
Best,
Frank


|