// test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <string.h>
#define SUM
#define TEST
//#define TEST__
#define TEST2
int main(int argc, char* argv[])
{
/*********************************************************************************************************************
*----------------------------------------------测试1
**********************************************************************************************************************/
#if 0
#ifdef SUM
#if (defined TEST) || defined(TEST__)
printf("测试成功TEST1\n");
#elif defined (TEST2)
printf("测试成功TEST2\n");
#endif
#else
printf("未定义SUM\n");
#endif
#endif
/*********************************************************************************************************************
*----------------------------------------------测试2
**********************************************************************************************************************/
#if 0
char tmp;
//printf("argc=%d,argv1=%s,argv2=%s\n",argc,argv,argv+1);
//while( *++argv !=NULL )
//{
// printf("%s\t",*argv);
//}
tmp =**(argv+1);
printf("tmp=%c\n",tmp);
return 0;
#endif
/*********************************************************************************************************************
*----------------------------------------------测试3
**********************************************************************************************************************/
static char *gpio_name[]={"GPIO_MDM_PWR_EN","GPIO_MDM_RST","GPIO_MDM_WAKEUP","GPIO_STATE1_108","GPIO_STATE2_109"};
printf("hello world,%s\n",gpio_name[1]);
return 0;
}