Commit | Line | Data |
---|---|---|
ef79bbde P |
1 | ; macros.inc - description |
2 | ; ------------------- | |
3 | ; begin : Sun Nov 08 2001 | |
4 | ; based on ZSNES macros.mac | |
5 | ; email : linuzappz@pcsx.net | |
6 | ||
7 | ; This program is free software; you can redistribute it and/or modify * | |
8 | ; it under the terms of the GNU General Public License as published by * | |
9 | ; the Free Software Foundation; either version 2 of the License, or * | |
10 | ; (at your option) any later version. See also the license.txt file for * | |
11 | ; additional informations. * | |
12 | ||
13 | ||
14 | %ifdef __WIN32__ | |
15 | ||
16 | %imacro EXTSYM 1-* | |
17 | %rep %0 | |
18 | extern _%1 | |
19 | %define %1 _%1 | |
20 | %rotate 1 | |
21 | %endrep | |
22 | %endmacro | |
23 | ||
24 | %imacro NEWSYM 1 | |
25 | global _%1 | |
26 | _%1: | |
27 | %1: | |
28 | %endmacro | |
29 | ||
30 | %else | |
31 | ||
32 | %define EXTSYM extern | |
33 | ||
34 | %imacro NEWSYM 1 | |
35 | global %1 | |
36 | %1: | |
37 | %endmacro | |
38 | ||
39 | %endif | |
40 |