May 05, 2024, 10:17:56 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


No comments after #endif

Started by Parker, December 07, 2005, 07:46:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

I have the following code:
#ifndef _LINKEDLIST
declare extern ListCreate(),pointer;
declare extern ListAdd(listnode *list, pointer item),pointer;
declare extern ListAddHead(listnode *list, pointer item),pointer;
declare extern ListGetFirst(listnode *list),pointer;
declare extern ListGetLast(listnode *list),pointer;
declare extern ListGetNext(listnode *list),pointer;
declare extern ListGetPrev(listnode *list),pointer;
declare extern ListGetData(listnode *list),pointer;
declare extern ListRemove(listnode *list, opt int bDelete = 0),pointer;
declare extern ListRemoveAll(listnode *list, opt int bDelete = 0);
#endif // _LINKEDLIST

and it doesn't compile, giving an error - missing $endif (a leftover :) ) but if I take the comment out it compiles fine. Just thought I'd let you know.