Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

typedef FNRT* PFNRT

Generic function pointer. With -pedantic, gcc-4 complains when casting a function to a data object, for example:

    void foo(void)

    void *bar = (void *)foo;

The compiler would warn with "ISO C++ forbids casting between pointer-to-function and pointer-to-object". The purpose of this warning is not to bother the programmer but to point out that he is probably doing something dangerous, assigning a pointer to executable code to a data object.

Definition at line 439 of file types.h.

Generated by  Doxygen 1.6.0   Back to index