1.1 --- a/core/vm/sp_vm_basecontext.cpp Thu Jan 25 04:25:40 2007 +0000
1.2 +++ b/core/vm/sp_vm_basecontext.cpp Thu Jan 25 04:36:48 2007 +0000
1.3 @@ -150,7 +150,11 @@
1.4 }
1.5 code_addr = pubfunc->code_offs;
1.6 } else {
1.7 +#if 0
1.8 code_addr = funcid >> 1;
1.9 +#endif
1.10 + assert(false);
1.11 + return SP_ERROR_INVALID_ADDRESS;
1.12 }
1.13
1.14 PushCell(pushcount++);
1.15 @@ -875,6 +879,7 @@
1.16 pFunc = m_pub_funcs[func_id];
1.17 }
1.18 } else {
1.19 +#if 0
1.20 func_id >>= 1;
1.21 unsigned int index;
1.22 if (!g_pVM->FunctionLookup(ctx, func_id, &index))
1.23 @@ -887,6 +892,8 @@
1.24 m_priv_funcs[func_id] = new CFunction(save, this);
1.25 pFunc = m_priv_funcs[func_id];
1.26 }
1.27 +#endif
1.28 + assert(false);
1.29 }
1.30
1.31 return pFunc;