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