kingBook

导航

c++ 定义宏常量

#ifndef __GAME_DATA_H__
#define __GAME_DATA_H__

#ifndef GAME_IS_CREATE_SHOP
#define GAME_IS_CREATE_SHOP 1
#endif

#endif
//使用方法
#include "GameData.h"

#if GAME_IS_CREATE_SHOP
    //你的代码
#endif

 

posted on 2016-12-05 15:19  kingBook  阅读(714)  评论(0编辑  收藏  举报