2011-06-07 00:48:10 +08:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
|
|
#include <intrin.h>
|
|
|
|
|
|
|
|
#include <iostream>
|
2011-09-22 16:25:42 +08:00
|
|
|
#include <string>
|
2011-06-07 00:48:10 +08:00
|
|
|
|
|
|
|
#include "utils.h"
|
|
|
|
|
2011-09-22 16:25:42 +08:00
|
|
|
const ULONG g_constNumValue = 0x5555;
|
|
|
|
const bool g_constBoolValue = true;
|
|
|
|
|
|
|
|
UCHAR g_ucharValue = 1;
|
|
|
|
USHORT g_ushortValue = 2;
|
|
|
|
ULONG g_ulongValue = 4;
|
|
|
|
ULONGLONG g_ulonglongValue = 8;
|
|
|
|
|
|
|
|
std::string g_string;
|
|
|
|
|
2011-09-22 00:50:42 +08:00
|
|
|
void FuncWithName0()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void FuncWithName1()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-06-07 00:48:10 +08:00
|
|
|
int _tmain(int argc, _TCHAR* argv[])
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2011-08-15 01:52:03 +08:00
|
|
|
// Let test scripts to execute
|
|
|
|
__debugbreak();
|
2011-09-22 00:50:42 +08:00
|
|
|
FuncWithName0();
|
|
|
|
FuncWithName1();
|
2011-06-07 00:48:10 +08:00
|
|
|
}
|
|
|
|
catch(std::exception & ex)
|
|
|
|
{
|
|
|
|
std::cout << ex.what() << std::endl;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
catch (...)
|
|
|
|
{
|
|
|
|
std::cout << "Unknown error" << std::endl;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|