Skip to content

Instantly share code, notes, and snippets.

View BourneID's full-sized avatar

BourneID

  • Tencent
  • China Shenzhen
View GitHub Profile
@BourneID
BourneID / Makefile
Created November 22, 2011 02:33
Project Makefile Template
#
# Project Makefile Template
#
INC = .
SRC = .
OUT = .
OBJ = obj
JSON_CPP_INC = ../jsoncpp/include
JSON_CPP_LIB = ../jsoncpp/libs
@BourneID
BourneID / makefile
Created November 16, 2011 06:22
GTest&GMock Unit Test Project Makefile Template
#
# GTest&GMock Unit Test Project Makefile Template
#
SUT_INC_DIR=../inc
SUT_SRC_DIR=../src
SUT_OBJ_DIR=../obj
UNIT_TEST_INC_DIR=.
UNIT_TEST_SRC_DIR=.
UNIT_TEST_OBJ_DIR=obj
UNIT_TEST_EXE_DIR=.
@BourneID
BourneID / MAutoReleasePointer
Created November 15, 2011 04:16
Automatically release memeory
/*
* MAutoReleasePointer.h release memory automatically
*
* Created on: 2011-10-27
* Author: bourneli
*/
#ifndef MSMARTPOINTER_H_
#define MSMARTPOINTER_H_