Ticket #48 (closed enhancement: fixed)

Opened 3 months ago

Last modified 3 months 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 (2.7 kB) - added by hopscc 3 months ago.

Change History

Changed 3 months ago by hopscc

Changed 3 months ago by hopscc

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

Changed 3 months 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.