Skip to content

Commit 10cf392

Browse files
committed
fdocs: wiki snapshot 2021.06.29
- fixed naming mistake with KeyPgThiscall - remove old examples
1 parent 1e99fab commit 10cf392

File tree

4 files changed

+28
-53
lines changed

4 files changed

+28
-53
lines changed

doc/manual/cache/KeyPgThicsall.wakka renamed to doc/manual/cache/KeyPgThiscall.wakka

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Specifies the //Thiscall// calling convention in a member procedure declaration
88
End Type
99
##
1010
{{fbdoc item="desc"}}
11-
In member procedure declarations, ##**""__Thiscall""**## specifies that a procedure will use the ##**Thiscall**## calling convention. In the //Thiscall// calling convention, the implicit and hidden [[KeyThis|This]] parameter is passed in the ##ECX## register.
11+
In member procedure declarations, ##**""__Thiscall""**## specifies that a procedure will use the ##**Thiscall**## calling convention. In the //Thiscall// calling convention, the implicit and hidden [[KeyPgThis|This]] parameter is passed in the ##ECX## register.
1212

1313
The ##//Thiscall//## calling convention is for 32-bit x86 targets only and is only partially implemented. It should work when using //-gen gcc// backend, but as of fbc-1.08.0, it is not implemented for the //-gen gas// backed.
1414

1515
It is not needed for normal fbc usage, and would typically only be needed for linking to and using ""g++/c++"" libraries.
1616

1717
{{fbdoc item="ex"}}
18-
{{fbdoc item="filename" value="examples/manual/procs/thicall.bas"}}%%(freebasic)
18+
{{fbdoc item="filename" value="examples/manual/procs/thiscall.bas"}}%%(freebasic)
1919
'' __thiscall only makes sense on windows 32-bit
2020
#if defined(__FB_WIN32__) and not defined(__FB_64BIT__)
2121
#define thiscall __thiscall

examples/manual/control/return.bas

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/manual/procs/thiscall.bas

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
'' examples/manual/procs/thiscall.bas
2+
''
3+
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't
4+
'' be included in other distributions without authorization.
5+
''
6+
'' See Also: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgThiscall
7+
'' --------
8+
9+
'' __thiscall only makes sense on windows 32-bit
10+
#if defined(__FB_WIN32__) And Not defined(__FB_64BIT__)
11+
#define thiscall __Thiscall
12+
#else
13+
#define thiscall
14+
#endif
15+
16+
Extern "c++"
17+
Type UDT
18+
value As Long
19+
'' fbc doesn't automatically add the __thiscall calling convention
20+
'' therefore, currently needs to be explicitly given where needed
21+
Declare Constructor thiscall ()
22+
Declare Destructor thiscall ()
23+
Declare Sub someproc thiscall ()
24+
'' etc
25+
End Type
26+
End Extern

examples/manual/proguide/procptrs/typing-rule.bas

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)