On Fri, Dec 18, 2009 at 1:37 PM, Chris Roper wrote: > Is there a way to trap errors in MPASM? > > I am creating a macro that generates different code based > on parameters passed and need to generate code for a no parameter situation. > I get an insufficient arguments error on compile and wanted to trap that but > can't find anything in the documentation to do so. It only allows me to > generate an error message not intercept one. > > Thanks > Chris I don't think it's sophisticated enough to accomplish that. You could probably use Olin's prepic preprocessor to do it. It does require some reading and experimentation to get started. http://www.embedinc.com/pic/dload.htm -- Martin K. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist