mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Const-eval release fix
This commit is contained in:
parent
ff1f8aff3f
commit
3611846b7f
2 changed files with 3 additions and 0 deletions
|
@ -536,7 +536,9 @@ BfMethodInfoEx::~BfMethodInfoEx()
|
||||||
BfMethodInstance::~BfMethodInstance()
|
BfMethodInstance::~BfMethodInstance()
|
||||||
{
|
{
|
||||||
if (mMethodInstanceGroup != NULL)
|
if (mMethodInstanceGroup != NULL)
|
||||||
|
{
|
||||||
BfLogSys(GetOwner()->mModule->mSystem, "BfMethodInstance::~BfMethodInstance %p Local:%d InCEMachine:%d\n", this, mMethodDef->mIsLocalMethod, mInCEMachine);
|
BfLogSys(GetOwner()->mModule->mSystem, "BfMethodInstance::~BfMethodInstance %p Local:%d InCEMachine:%d\n", this, mMethodDef->mIsLocalMethod, mInCEMachine);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
BF_ASSERT(!mMethodDef->mIsLocalMethod);
|
BF_ASSERT(!mMethodDef->mIsLocalMethod);
|
||||||
|
|
|
@ -23,6 +23,7 @@ namespace Tests
|
||||||
const String cStrA = "Abc";
|
const String cStrA = "Abc";
|
||||||
const String cStrB = GetStringA(cStrA, 12, 23);
|
const String cStrB = GetStringA(cStrA, 12, 23);
|
||||||
|
|
||||||
|
// ConstEval attribute means this method will always be const-evaluated
|
||||||
[ConstEval]
|
[ConstEval]
|
||||||
static String GetStringA(String str, int a, int b)
|
static String GetStringA(String str, int a, int b)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue