Wiki

Ticket #48 (closed enhancement: fixed)

Opened 16 years ago

Last modified 16 years ago

provide error compiler directive

Reported by: hopscc Owned by: Chuck
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

%%error <optional-message>

causes compiler to display message (if any) and compilation to stop with a suitable error.

Same functionality as throw-stop.patch in (closed) ticket:35

Attachments

error-compiler-directive.patch Download (2.7 KB) - added by hopscc 16 years ago.

Change History

Changed 16 years ago by hopscc

Changed 16 years ago by hopscc

  • status changed from new to assigned
  • owner set to Chuck

Changed 16 years ago by Chuck

  • status changed from assigned to closed
  • resolution set to fixed

Applied.

I took out the print statement as most, and close to all, of the compiler's output should be via warnings and errors. This will help in the future with IDE support and with compiler reuse.

I also added 'warning'.

This gives Cobra the same kind of functionality found in gcc's #error and #warning directives.

changeset:1672

Note: See TracTickets for help on using tickets.