Store a pointer to class container in each method.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2019-05-21 08:40:10 +02:00
부모 a25b163af6
커밋 1acbd21caf
로그인 계정: belliash
GPG 키 ID: 4E829243E0CFE6B4
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -192,6 +192,7 @@ PH7_PRIVATE sxi32 PH7_ClassInstallAttr(ph7_class *pClass, ph7_class_attr *pAttr)
PH7_PRIVATE sxi32 PH7_ClassInstallMethod(ph7_class *pClass, ph7_class_method *pMeth) {
SyString *pName = &pMeth->sFunc.sName;
sxi32 rc;
pMeth->pClass = pClass;
rc = SyHashInsert(&pClass->hMethod, (const void *)pName->zString, pName->nByte, pMeth);
return rc;
}

파일 보기

@ -1093,6 +1093,7 @@ struct ph7_class_method {
SyString sVmName; /* Automatically generated name assigned to this method.
* Typically this is "[class_name__method_name@random_string]"
*/
ph7_class *pClass; /* Class the method was declared */
sxi32 iProtection; /* Protection level [i.e: public,private,protected] */
sxi32 iFlags; /* Methods configuration */
sxi32 iCloneDepth; /* Clone depth [Only used by the magic method __clone ] */