FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
hook_pcopy.c
Go to the documentation of this file.
1
/* pcopy entrypoint, default to console mode */
2
3
#include "
fb.h
"
4
5
FBCALL
int
fb_PageCopy
(
int
src,
int
dst )
6
{
7
fb_DevScrnInit_NoOpen
( );
8
9
FB_LOCK
();
10
11
int
res;
12
13
if
(
__fb_ctx
.
hooks
.
pagecopyproc
)
14
res =
__fb_ctx
.
hooks
.
pagecopyproc
( src, dst );
15
else
16
{
17
if
( (src >=
FB_CONSOLE_MAXPAGES
) || (dst >=
FB_CONSOLE_MAXPAGES
) )
18
return
fb_ErrorSetNum
(
FB_RTERROR_ILLEGALFUNCTIONCALL
);
19
20
res =
fb_ConsolePageCopy
( src, dst );
21
}
22
23
FB_UNLOCK
();
24
25
return
res;
26
}
rtlib
hook_pcopy.c
Generated on Thu Jan 23 2014 19:40:12 for FreeBASIC by
1.8.4