代码搜索:except
找到约 10,000 项符合「except」的源代码
代码结果 10,000
www.eeworm.com/read/232407/4700941
h handle_except.h
/** \file
* Handle Comet exceptions.
* Copyright 2003 Atex Media Command. All rights reserved.
*/
#ifndef COMET_HANDLE_EXCEPT_H
#define COMET_HANDLE_EXCEPT_H
#ifdef _SHOW_INC
#pragma messag
www.eeworm.com/read/229812/4738816
c except12.c
#include "fail.h"
#include
struct except {
int error;
int kind;
static int count;
except( int k = 0 ) : kind(k), error(0) { ++count; }
except( except const &s
www.eeworm.com/read/229812/4738830
c except26.c
#include "fail.h"
#include
void does_throw() {
throw "asdf";
}
void test() {
try {
try {
does_throw();
} catch( char *p ) {
if( strcmp( p, "asdf" ) ) fail(
www.eeworm.com/read/229812/4738831
c except37.c
#include "fail.h"
static int except_called = 0;
static int except_caught = 0;
struct S {
S() { except_called++; };
};
static int I = 0;
static int FuncCalled = 0;
int foo()
{
i
www.eeworm.com/read/229812/4738836
c except09.c
#include "fail.h"
// 93/11/18 (jww) works in 10.0
// page faults (-ox -d1) (AFS)
// reported by a customer
// appears to be a problem of not popping exception-spec in all ctors/dtors
#include
www.eeworm.com/read/229812/4738838
c except16.c
// 95/09/12 -- J.W.Welch -- rename String class
#include "fail.h"
class StringClass {
};
struct TimeOut{
int value;
TimeOut() : value(1) {}
};
int main()
{
int cat
www.eeworm.com/read/229812/4738872
c except15.c
#include "fail.h"
int p_count;
struct p {
int x,y;
p( int x, int y ) : x(x), y(y) { ++p_count; }
p( p const &s ) : x(s.x), y(s.y) { ++p_count; }
~p() {--p_count;}
};
int
www.eeworm.com/read/229812/4738929
c except24.c
// PT166095
#include "fail.h"
class xErr {};
int ctored;
struct CD {
CD();
CD(CD const & );
~CD();
void throwException();
int sig;
};
CD::CD() : sig(++ctored)
www.eeworm.com/read/229812/4738935
c except27.c
#include "fail.h"
unsigned count;
unsigned thrown;
void test( int i ) {
++count;
if( i % 5 ) {
++thrown;
throw -i;
}
}
int main() {
int i;
for( i = 0; i < 100