repo.or.cz
/
tinycc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
tcc -MD: drop system includes and duplicates
[tinycc.git]
/
tests
/
tests2
/
113_btdll.c
blob
8ae898167d22c0b0a571e97b160c8b4f2bbda07f
1
int
tcc_backtrace
(
const char
*, ...);
2
#define hello() \
3
tcc_backtrace(
"hello from %s() / %s:%d"
,__FUNCTION__,__FILE__,__LINE__)
4
5
#ifndef _WIN32
6
# define __declspec(n)
7
#endif
8
9
#if DLL==1
10
__declspec
(
dllexport
)
int
f_1
()
11
{
12
hello
();
13
return
0
;
14
}
15
16
17
#elif DLL==2
18
__declspec
(
dllexport
)
int
f_2
()
19
{
20
hello
();
21
return
0
;
22
}
23
24
25
#else
26
27
int
f_1
();
28
int
f_2
();
29
int
f_main
()
30
{
31
hello
();
32
return
0
;
33
}
34
35
int
main
()
36
{
37
f_1
();
38
f_2
();
39
f_main
();
40
return
0
;
41
}
42
43
#endif