This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<dbghelp.h> | |
void getStackTrace(char *funcName,int *lineNumber) | |
{ | |
unsigned int i; | |
void * stack[ 100 ]; | |
unsigned short frames; | |
SYMBOL_INFO * symbol; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<intrin.h> | |
#include<Windows.h> | |
typedef struct matrix4X4d | |
{ | |
double matrix[4][4]; | |
}Matrix4x4D; | |
void M4x4MultM4x4 (Matrix4x4D *m1, Matrix4x4D *m2, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<dbghelp.h> | |
#include<direct.h> | |
#include <GL/gl.h> | |
#include<stdio.h> | |
void getStackTrace(char *funcName,int *lineNumber) | |
{ | |
unsigned int i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include <new> | |
#include <cassert> | |
/* | |
This Demos how to install class specific new_handler. | |
set_new_handler function has global scope. | |
So If you want to have class specific installation of handler this is utility class for it. | |
*/ | |
template<class T> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<new> | |
#include<cassert> | |
using std::cout; | |
using std::cin; | |
using std::endl; | |
namespace Numbers | |
{ |