对于一个做lua项目只开sublime的不喜欢开IDE的人来说,简直心态爆炸
速速整出来
proj.win32下main.cpp下加
#ifdef WIN32 _tsetlocale(LC_ALL, _T("")); ::AllocConsole(); ::freopen("conout$", "w", stdout); ::freopen("CONIN$", "r", stdin); ::freopen("CONOUT$", "w", stderr); #endif
#ifdef WIN32 _tsetlocale(LC_ALL, _T("")); ::AllocConsole(); ::freopen("conout$", "w", stdout); ::freopen("CONIN$", "r", stdin); ::freopen("CONOUT$", "w", stderr); #endif