Macro to specify include files and import libraries

Started by Vortex, May 25, 2008, 11:23:13 AM

Previous topic - Next topic

Vortex

With this simple macro, you can easily specify your include files and import libraries :

incpath TEXTEQU <\poasm\include\>
libpath TEXTEQU <\poasm\lib\>

inclib MACRO args:VARARG

    FOR param,<args>

        include @CatStr(incpath,param,<.inc>)
        includelib @CatStr(libpath,param,<.lib>)

    ENDM

ENDM


Example usage :

inclib      kernel32,user32

which is equivalent to :

include \poasm\include\kernel32.inc
includelib \poasm\lib\kernel32.lib
include \poasm\include\user32.inc
includelib \poasm\lib\user32.lib