コード例 #1
0
ファイル: main.cpp プロジェクト: tatwood/taasdk
int main(int argc, char* argv[])
{
    printf("testing coroutines...\n");
    fflush(stdout);
    test_coroutine();
    printf("success\n");
#if defined(_DEBUG) && defined(_MSC_FULL_VER)
    _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
    _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDOUT);
    _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
    _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
    _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
    _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDOUT);
    _CrtCheckMemory();
    _CrtDumpMemoryLeaks();
#endif
    return EXIT_SUCCESS;
}
コード例 #2
0
ファイル: crtnosf1.c プロジェクト: jbailhache/log
main ()
{
	test_coroutine ();
}