代码搜索:except

找到约 10,000 项符合「except」的源代码

代码结果 10,000
www.eeworm.com/read/229812/4739160

c except21.c

#include "fail.h" struct x { static int count; int sig; x(int v) : sig(v) { ++count; } x( x const &s ) : sig(s.sig) { ++count; } ~x() { --count; if( count
www.eeworm.com/read/229812/4739170

c except29.c

#include "fail.h" #if __WATCOMC__ > 1060 int throws; int catches; int coverage; struct X { int sig; X( int x ) : sig(x) { } }; void f( int i ) { switch( i ) {
www.eeworm.com/read/229812/4739191

c except13.c

#include "fail.h" int alloc_count; struct S { S( int x ) : x(x) { throw int(x); } ~S() { fail(__LINE__); } void *operator new( unsigned x ) { ++alloc_count; return malloc( x )
www.eeworm.com/read/229812/4739214

c except01.c

#include "fail.h" #include #include int main() { for( int i = 0; i < 2; ++i ) { try { if( i == 0 ) { throw (int **) 0; } else { throw (int ***) 0;
www.eeworm.com/read/229812/4739254

c except32.c

#include "fail.h" #include struct B { int b[8]; B(); B( B const & ); }; B::B() { for( int i = 0; i < 8; ++i ) { b[i] = i+0xb00; } } B::B( B const &s ) {
www.eeworm.com/read/229812/4739255

c except28.c

#include "fail.h" #include int count; char *check_msg = "CCCC"; struct A { virtual char *msg() const = 0; protected: A() : sig(++count) { } public: A( A const
www.eeworm.com/read/229812/4739259

c except40.c

#include "fail.h" struct Except { }; struct ExceptA : Except { }; struct ExceptB : Except { }; struct ExceptC : Except { }; void do_throw( int which ) { switch( which ) { cas
www.eeworm.com/read/229812/4739273

c except39.c

#include "fail.h" int x = 0; static void nothing() { x++; } struct foo { ~foo(); }; foo::~foo() { nothing(); } struct bar : foo { bar() { throw 0; } }; int main() { try {
www.eeworm.com/read/229812/4739329

c except14.c

// except14 -- test destruction from blocks with goto, return #include "fail.h" int ctored_exc1 = 0; struct exc1 { ~exc1() { --ctored_exc1; } exc1() { ++ctored_exc1; }; exc1( con
www.eeworm.com/read/229812/4739356

c except10.c

#include "fail.h" // 93/11/18 (jww) fixed on 10.0 (not on 9.5) // reported by a customer (AFS) /* Watcom 9.5, patch A: Executing the "for" loop causes Foo's constructor to be called 4 times