Re: [Noob] Code question

2016-10-02 Thread Peter Kovacs

Awesome!!!

Thanks a lot Patricia. For the link and the definition.

:-D


On 02.10.2016 21:58, Patricia Shanahan wrote:

Here's an answer to part of your question.

On 10/2/2016 9:49 AM, Peter Kovacs wrote:
...

What does SAL NO VTABLE mean? Is it macro code?

...

It's time to start using the OpenOffice OpenGrok at 
http://opengrok.adfinis-sygroup.org/source/


(Or use find and grep in combination, but that takes longer).

Searching for SAL_NO_VTABLE as a Definition in the trunk shows that it 
is a #define in main/sal/inc/sal/types.h


Viewing the code in types.h:

314/** Use this for pure virtual classes, e.g. class SAL_NO_VTABLE Foo 
{ ...
315This hinders the compiler from setting a generic vtable stating 
that
316a pure virtual function was called and thus slightly reduces 
code size.

317*/
318#ifdef _MSC_VER
319#   define SAL_NO_VTABLE __declspec(novtable)
320#else
321#   define SAL_NO_VTABLE
322#endif




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: [Noob] Code question

2016-10-02 Thread Patricia Shanahan

Here's an answer to part of your question.

On 10/2/2016 9:49 AM, Peter Kovacs wrote:
...

What does SAL NO VTABLE mean? Is it macro code?

...

It's time to start using the OpenOffice OpenGrok at 
http://opengrok.adfinis-sygroup.org/source/


(Or use find and grep in combination, but that takes longer).

Searching for SAL_NO_VTABLE as a Definition in the trunk shows that it 
is a #define in main/sal/inc/sal/types.h


Viewing the code in types.h:

314/** Use this for pure virtual classes, e.g. class SAL_NO_VTABLE Foo { ...
315This hinders the compiler from setting a generic vtable stating that
316a pure virtual function was called and thus slightly reduces code 
size.

317*/
318#ifdef _MSC_VER
319#   define SAL_NO_VTABLE __declspec(novtable)
320#else
321#   define SAL_NO_VTABLE
322#endif




-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org