[News] MorphOS program guidelines online | ANN.lu |
|
List of all comments to this article |
MorphOS program guidelines online : Comment 24 of 38 | ANN.lu |
Posted by Dk on 21-Feb-2002 17:34 GMT | BOOL MyInterrupt(void)
{
struct IntDataData *MyIntData=(struct IntData*) REG_A1;
struct ExecBase *SysBase=MyIntData->SysBase;
u_int8_t *PPCRegs;
/* put your code here */
return (0);
}
Oh no ! There are putting their '*' on the wrong side ! :-)
I prefer this style (which moreover uses some tiny C++ stuff) :
(Don't blame me, I'm just teasing :-))
bool MyInterrupt()
{
IntData* pMyIntData(IntData*) REG_A1;
ExecBase* pSysBaseMyIntData->SysBase;
uint8* pPPCRegs;
// Put your code here
return false;
} |
|
List of all comments to this article (continued) |
|
- User Menu
-
- About ANN archives
- The ANN archives is powered by #AmigaZeux. It was updated daily (news last: 22-Oct-2004; comments last: 18-May-2005).
ANN.lu was created, previously owned and maintained by Christian Kemp, www.ckemp.com.
- Contribute
- Not possible at this time!
- Search ANN archives
- Advanced search
- Hosting
- ANN.lu was hosted by Dreamhost. Sign up through this link, mention "ckemp" as referrer and he will get a 10% commission on any account you purchase.
Please show your appreciation for any past, present and future work on ANN.lu by making a contribution via PayPal.
|