Skip to content

Instantly share code, notes, and snippets.

View PixelClear's full-sized avatar

Paritosh Kulkarni PixelClear

View GitHub Profile
#include<dbghelp.h>
void getStackTrace(char *funcName,int *lineNumber)
{
unsigned int i;
void * stack[ 100 ];
unsigned short frames;
SYMBOL_INFO * symbol;
#include<intrin.h>
#include<Windows.h>
typedef struct matrix4X4d
{
double matrix[4][4];
}Matrix4x4D;
void M4x4MultM4x4 (Matrix4x4D *m1, Matrix4x4D *m2,
#include<dbghelp.h>
#include<direct.h>
#include <GL/gl.h>
#include<stdio.h>
void getStackTrace(char *funcName,int *lineNumber)
{
unsigned int i;
#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>
#include<iostream>
#include<new>
#include<cassert>
using std::cout;
using std::cin;
using std::endl;
namespace Numbers
{