📄 enumeration.cpp
字号:
/***
*** See the file "mba/disclaimers-and-notices-L2.txt" for
*** information on usage and redistribution of this file,
*** and for a DISCLAIMER OF ALL WARRANTIES.
***/
/* $Id: enumeration.cpp,v 1.1.1.1 2006/10/09 06:58:18 shao Exp $ */
#include <readers/enumeration.h>
#ifdef ENABLE_L2_DEBUG_SECTIONS
// Allocate and initialize the array of element names
dbg_L2rEnumeration::dbg_L2rEnumeration(unsigned eid,
unsigned n,
const MBA_string& ename,
const MBA_string *memnames)
: L2rEnumeration(eid,n), enum_name_(ename)
{
member_name_ = L2_alloc_array(MBA_string, n);
for (size_t i = 0; i < n; i++) {
member_name_[i] = memnames[i];
}
}
// Delete the array of element names
dbg_L2rEnumeration::~dbg_L2rEnumeration()
{
L2_free_array(member_name_, nmembers());
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -