📄 chk_regfile.cpp
字号:
/* Copyright is licensed under GNU LGPL. by I.J.Wang 2003 Check WyRegFile public members Build: make chk_regfile Note: Test data files should exist in the working directory Files may be created in the working directory and unlinked*/#include "wyregfile.h"#include "chk_data.h"#include <unistd.h>#include "wy_uty.h"#if WYREGFILE_VERSION!=31#error Test code is for WYREGFILE_VERSION 31#endifextern void ck_regfile(bool,const char*);static const WyStr chdr( "+------------------+\n" "| main(..) caught: |\n" "+------------------+\n");int main(void) throw()try { Wy::cout << "Checking wyregfile.h ...\n"; if(std::strcmp(WyRegFile::class_name,"WyRegFile")!=0) { WY_THROW( WyRet() ); } ck_regfile(true,"wytimespec.cpp"); Wy::cout << "Checked Ok\n"; return(0);}catch(const WyRet& e) { Wy::cerr << chdr << Wy::wrd(e) << '\n'; return(-1);}catch(...) { Wy::cerr << chdr << "unknown unwind\n"; return(-1);};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -