FreeBASIC  0.91.0
hook_gety.c
Go to the documentation of this file.
1 /* gety entrypoint, default to console mode */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL int fb_GetY( void )
7 {
8  int res;
9 
10  FB_LOCK();
11 
12  if( __fb_ctx.hooks.getyproc )
13  res = __fb_ctx.hooks.getyproc( );
14  else
15  res = fb_ConsoleGetY( );
16 
17  FB_UNLOCK();
18 
19  return res;
20 }