Sha256: 79667d4d75802eb666e7da13a74f8819400afc4519377396330ba39cb2d23941
Contents?: true
Size: 1018 Bytes
Versions: 1
Compression:
Stored size: 1018 Bytes
Contents
/* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2006 * * Last modified: * $Date: 2006-07-12 21:37:21 +0200 (Wed, 12 Jul 2006) $ by $Author: schulte $ * $Revision: 3352 $ * * This file is part of Gecode, the generic constraint * development environment: * http://www.gecode.org * * See the file "LICENSE" for information on usage and * redistribution of this file, and for a * DISCLAIMER OF ALL WARRANTIES. * */ #include "gecode/kernel.hh" namespace Gecode { /* * Base class for exceptions * */ Exception::Exception(const char* l, const char* i) throw() { int j = 0; while ((*l != 0) && (j < li_max)) li[j++] = *(l++); if (j < li_max) li[j++] = ':'; if (j < li_max) li[j++] = ' '; while ((*i != 0) && (j < li_max)) li[j++] = *(i++); li[j] = 0; } const char* Exception::what(void) const throw() { return &li[0]; } } // STATISTICS: kernel-other
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gecoder-with-gecode-0.7.1 | ext/gecode-1.3.1/gecode/kernel/exception.cc |