What is defined as pseudo-functions

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

What is defined as pseudo-functions

Post by bpd2000 »

I want to know more about "defined as pseudo-functions"
BPD
Convert Dream into Reality through HMG
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: What is defined as pseudo-functions

Post by esgici »

bpd2000 wrote:I want to know more about "defined as pseudo-functions"
Please look at here.

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
User avatar
gfilatov
Posts: 1090
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: What is defined as pseudo-functions

Post by gfilatov »

bpd2000 wrote:I want to know more about "defined as pseudo-functions"
Hi,

It is a very powerful feature of Harbour compiler.

Pseudo-functions are used extensively in HMG Extended Edition for reducing of memory consuming and diminish of minigui's core.

For example, there are the following useful definitions in the header i_pseudofunc.ch:
#xtranslate GetEscapeState () ;
=> ;
GetKeyState( VK_ESCAPE )

#xtranslate GetAltState () ;
=> ;
GetKeyState( VK_MENU )

#xtranslate IsInsertActive () ;
=> ;
( GetKeyState( VK_INSERT ) > 0 )

#xtranslate IsCapsLockActive () ;
=> ;
( GetKeyState( VK_CAPITAL ) > 0 )

#xtranslate IsNumLockActive () ;
=> ;
( GetKeyState( VK_NUMLOCK ) > 0 )

#xtranslate IsScrollLockActive () ;
=> ;
( GetKeyState( VK_SCROLL ) > 0 )
instead of using 6 (six) different functions.

Hope that useful :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: What is defined as pseudo-functions

Post by bpd2000 »

gfilatov wrote:
bpd2000 wrote:I want to know more about "defined as pseudo-functions"
Hi,

It is a very powerful feature of Harbour compiler.

Pseudo-functions are used extensively in HMG Extended Edition for reducing of memory consuming and diminish of minigui's core.
esgici wrote:
bpd2000 wrote:I want to know more about "defined as pseudo-functions"
Please look at here.

Happy HMG'ing :D
Thank you Esgici and Grigory Filatov
BPD
Convert Dream into Reality through HMG
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: What is defined as pseudo-functions

Post by esgici »

Thanks Grigory :)

By the way, are you returned from holiday ?

We are worried about you and your country :(

I wish emergency and permanent peace and independence to your country and people :arrow:

Kind regards

Dave;

about preprocessor, this page also may be useful to you :idea:

Viva HMG :D
Viva INTERNATIONAL HMG :D
User avatar
gfilatov
Posts: 1090
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: What is defined as pseudo-functions

Post by gfilatov »

esgici wrote:Thanks Grigory :)

By the way, are you returned from holiday ?

We are worried about you and your country :(

I wish emergency and permanent peace and independence to your country and people :arrow:

...
Viva HMG :D
Hi Esgici,

Yes, I've returned already from Nederlands (peaceful place). And I've published a new HMG EE build today :D

Thanks for your attention to Ukrainian problems. And let God helps us in this toilsome time...
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
Post Reply