Skip to content

Commit

Permalink
Unblock PprocNew
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyZac authored Dec 5, 2024
1 parent e59d0e6 commit e5db3e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions include/splice/proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ class CPair;
class CProc
{
private:
CFrame* m_pframe;
CPair* m_ppair;
CFrame *m_pframe;
CPair *m_ppair;
int m_crefReq;
int m_fVarArg;
CPair* m_ppairCodeExpr;
CPair *m_ppairCodeExpr;

public:
void CloneTo(CProc* pprocClone, CFrame* pframeClone);
void CloneTo(CProc *pprocClone, CFrame *pframeClone);
};

static CProc* PprocNew();
CProc *PprocNew();

#endif // SPLICE_PROC_H
13 changes: 6 additions & 7 deletions src/P2/splice/proc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ void CProc::CloneTo(CProc *pprocClone, CFrame *pframeClone)
pprocClone->m_ppairCodeExpr = m_ppairCodeExpr;
}

// todo: matches but blocked by references in CRef::CloneTo and RefEvalLambda
INCLUDE_ASM(const s32, "P2/splice/proc", PprocNew__Fv);
// static CProc* PprocNew() {
// CProc* proc = (CProc*)g_splotheapProc.PvAllocClear();
// memset(proc, 0, sizeof(CProc));
// return proc;
// }
CProc *PprocNew()
{
CProc *proc = (CProc *)g_splotheapProc.PvAllocClear();
memset(proc, 0, sizeof(CProc));
return proc;
}

0 comments on commit e5db3e5

Please sign in to comment.