OpenCores
URL https://opencores.org/ocsvn/scarm/scarm/trunk

Subversion Repositories scarm

[/] [scarm/] [trunk/] [src/] [scException.cpp] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 zhong
// scException.cpp: implementation of the scException class.
2
//
3
//////////////////////////////////////////////////////////////////////
4
 
5
#include "scException.h"
6
#include<stdlib.h>
7
#include <string.h>
8
 
9
#define BASIC_ERROR  "Unknown exception"
10
//////////////////////////////////////////////////////////////////////
11
// Construction/Destruction
12
//////////////////////////////////////////////////////////////////////
13
 
14
scException::scException()
15
{
16
  m_strError = strdup(BASIC_ERROR);
17
}
18
 
19
scException::~scException()
20
{
21
 free(m_strError);
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.