Page 1 of 1

What is defined as pseudo-functions

Posted: Fri Apr 25, 2014 9:14 am
by bpd2000
I want to know more about "defined as pseudo-functions"

Re: What is defined as pseudo-functions

Posted: Fri Apr 25, 2014 9:23 am
by esgici
bpd2000 wrote:I want to know more about "defined as pseudo-functions"
Please look at here.

Happy HMG'ing :D

Re: What is defined as pseudo-functions

Posted: Fri Apr 25, 2014 10:04 am
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:

Re: What is defined as pseudo-functions

Posted: Fri Apr 25, 2014 10:30 am
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

Re: What is defined as pseudo-functions

Posted: Fri Apr 25, 2014 11:11 am
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

Re: What is defined as pseudo-functions

Posted: Fri Apr 25, 2014 11:46 am
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...