![]() |
| ||
| quick synax question Ok so im still learning C++, looking at some directx and i come across a _ before a var and was wondering what it means. for example: pDevice->SetVertexDeclaration( _vertexDeclaration ); or in a error macro: SHOWERROR( “CreateVertexBuffer failed.”, __FILE__, __LINE__ ); first one is probably the best example. thanks. |
| ||
| Re: quick synax question 1. It's absolutely clear and ordinar member function call via a pointer to the object (with single argument). 2. Again it's not a syntax related question, syntactically it's a very simple construct. There are two standard macros in C and C++: __FILE__ - expands to the current source module name (as a string literal) __LINE__ - expands in the current source module line number (as a decimal constant). Of course, you must have a minimal knowledge of C++ language to read sources ;) |
| ||
| Re: quick synax question Ok so i didnt know that the __FILE__ and __LINE__ were standard C/C++ macros, so that was helpful thanks. I thought there may be some significance in having an underscore prefix on a variable, be it syntatical or naming convention but obviously not. |
| ||
| Re: quick synax question Quote:
|
| All times are GMT -4. The time now is 3:48 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC