aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfxvideo/macros.inc
blob: 47829285b8d65cc8e8db286c23e8c3b185fddf0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
; macros.inc -  description
; -------------------
; begin                : Sun Nov 08 2001
; based on ZSNES macros.mac
; email                : linuzappz@pcsx.net

; This program is free software; you can redistribute it and/or modify  *
; it under the terms of the GNU General Public License as published by  *
; the Free Software Foundation; either version 2 of the License, or     *
; (at your option) any later version. See also the license.txt file for *
; additional informations.                                              *


%ifdef __WIN32__

%imacro EXTSYM 1-*
%rep %0
  	extern _%1
  	%define %1 _%1
%rotate 1
%endrep
%endmacro

%imacro NEWSYM 1
  global _%1
  _%1:
  %1:
%endmacro

%else

%define EXTSYM extern

%imacro NEWSYM 1
	global %1
	%1:
%endmacro

%endif