annotate nocompile/extern_06.d @ 1630:d0efa3ae5522 default tip

run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author David Nadlinger <code@klickverbot.at>
date Sat, 23 Apr 2011 22:57:32 +0200
parents b8c0195059d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
201
96fb902700fe casting function pointers
thomask
parents:
diff changeset
1 // $HeadURL$
96fb902700fe casting function pointers
thomask
parents:
diff changeset
2 // $Date$
96fb902700fe casting function pointers
thomask
parents:
diff changeset
3 // $Author$
96fb902700fe casting function pointers
thomask
parents:
diff changeset
4
96fb902700fe casting function pointers
thomask
parents:
diff changeset
5 // @author@ Russ Lewis <spamhole-2001-07-16@deming-os.org>
96fb902700fe casting function pointers
thomask
parents:
diff changeset
6 // @date@ 2004-12-14
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2566
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 201
diff changeset
8 // @uri@ nntp://news.digitalmars.com/digitalmars.D.bugs:2556
201
96fb902700fe casting function pointers
thomask
parents:
diff changeset
9
96fb902700fe casting function pointers
thomask
parents:
diff changeset
10 module dstress.nocompile.extern_06;
96fb902700fe casting function pointers
thomask
parents:
diff changeset
11
96fb902700fe casting function pointers
thomask
parents:
diff changeset
12 // missing extern(C) modifier
96fb902700fe casting function pointers
thomask
parents:
diff changeset
13
96fb902700fe casting function pointers
thomask
parents:
diff changeset
14 extern(C) void *wglGetProcAddress(char*);
96fb902700fe casting function pointers
thomask
parents:
diff changeset
15 extern(C) int function() glFunctionFoo;
96fb902700fe casting function pointers
thomask
parents:
diff changeset
16
96fb902700fe casting function pointers
thomask
parents:
diff changeset
17 static this() {
96fb902700fe casting function pointers
thomask
parents:
diff changeset
18 glFunctionFoo = cast(int function()) wglGetProcAddress("glFunctionFoo");
96fb902700fe casting function pointers
thomask
parents:
diff changeset
19 }
96fb902700fe casting function pointers
thomask
parents:
diff changeset
20
96fb902700fe casting function pointers
thomask
parents:
diff changeset
21