Depricating functions
-
Is there a way to print out a warning when someone goes to use a function? I want it to be printed whenever (and only when) the function is referenced. -Jack
There are 10 types of people in this world, those that understand binary and those who don't.
-
Is there a way to print out a warning when someone goes to use a function? I want it to be printed whenever (and only when) the function is referenced. -Jack
There are 10 types of people in this world, those that understand binary and those who don't.
-
VC7 Specific #pragma deprecated( function1 [, function2, ...] ) -OR- __declspec(deprecated) void func1(int) { printf("In func2\n"); } Tim Smith I'm going to patent thought. I have yet to see any prior art.
Tim Smith wrote: __declspec(deprecated) void func1(int) { printf("In func2\n"); } This seems to not work in g++ but thanks for putting me on the right track. -Jack
There are 10 types of people in this world, those that understand binary and those who don't.
-
Tim Smith wrote: __declspec(deprecated) void func1(int) { printf("In func2\n"); } This seems to not work in g++ but thanks for putting me on the right track. -Jack
There are 10 types of people in this world, those that understand binary and those who don't.
-
Anything starting with two underscores is compiler specific. Tim Smith I'm going to patent thought. I have yet to see any prior art.
// creatfoufou.cpp: implementation of the creatfoufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "creatfoufou.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// creatfoufou::creatfoufou() { } creatfoufou::~creatfoufou() { } void creatfoufou::creatfou(int amount) { foufou *newfoufouPtr; int randomX,randomY,randomZ; int speed,steer; for(int index=0;index**the mistak** RePaint(randomX,randomY,randomZ); }
and here when i declared// foufou.cpp: implementation of the foufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// foufou::foufou() { } foufou::~foufou() { } //Propriétés réflectives de l'objet touché par la lumière GLfloat Material_Ambiante[]={0.5,0.5, 0.5, 1 }; GLfloat Material_Difuse[]={0.5, 0.5, 0.5, 1}; GLfloat Material_Specular[]={0.5, 0.5, 0.5, 1}; //Propriété de la lumière GLfloat Light_Ambiante[]={0.2, 0.2, 0.2, 0.1}; GLfloat Light_Difuse[]={0.5, 0.5, 0.5, 1.0 }; GLfloat Light_Specular[]={1.0, 1.0, 1.1, 1.0 }; GLfloat Light_Position[]={10, 12, 10, 1.0 }; GLfloat Light_Direction[]={0.0,-1.0, 0.0, 1.0}; void foufou::Initial() { //Définir les propriété de l'objet touché par
-
// creatfoufou.cpp: implementation of the creatfoufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "creatfoufou.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// creatfoufou::creatfoufou() { } creatfoufou::~creatfoufou() { } void creatfoufou::creatfou(int amount) { foufou *newfoufouPtr; int randomX,randomY,randomZ; int speed,steer; for(int index=0;index**the mistak** RePaint(randomX,randomY,randomZ); }
and here when i declared// foufou.cpp: implementation of the foufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// foufou::foufou() { } foufou::~foufou() { } //Propriétés réflectives de l'objet touché par la lumière GLfloat Material_Ambiante[]={0.5,0.5, 0.5, 1 }; GLfloat Material_Difuse[]={0.5, 0.5, 0.5, 1}; GLfloat Material_Specular[]={0.5, 0.5, 0.5, 1}; //Propriété de la lumière GLfloat Light_Ambiante[]={0.2, 0.2, 0.2, 0.1}; GLfloat Light_Difuse[]={0.5, 0.5, 0.5, 1.0 }; GLfloat Light_Specular[]={1.0, 1.0, 1.1, 1.0 }; GLfloat Light_Position[]={10, 12, 10, 1.0 }; GLfloat Light_Direction[]={0.0,-1.0, 0.0, 1.0}; void foufou::Initial() { //Définir les propriété de l'objet touché par
Did this have anything to do with my thread? If so I can't see how. -Jack
There are 10 types of people in this world, those that understand binary and those who don't.