Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adds line numbers to messages

  • Loading branch information...
commit 607ca7d1f0062d525a1d654d33c23619d074a7e4 1 parent 3bd8039
@jeremytregunna authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 wee/message.hpp
View
5 wee/message.hpp
@@ -33,8 +33,8 @@ namespace Acute
class Message : public Object
{
public:
- Message() : name(""), arguments() {}
- Message(const std::string& n, std::vector<Message*> args) : name(n), arguments(args) {}
+ Message() : name(""), arguments(), line_number(-1) {}
+ Message(const std::string& n, std::vector<Message*> args, long line) : name(n), arguments(args), line_number(line) {}
Object* perform_on(Object*, Object*);
@@ -49,6 +49,7 @@ namespace Acute
private:
std::string name;
std::vector<Message*> arguments;
+ long line_number;
public:
Message* next;
Please sign in to comment.
Something went wrong with that request. Please try again.