Skip to content

Commit

Permalink
Fix small issue in error parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ricardo Ziviani <[email protected]>
  • Loading branch information
jrziviani committed Feb 13, 2019
1 parent a74703d commit 63281cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion include/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace amps
{
std::string path_;
std::string result_;
error error_;
error &error_;

scan scanner_;
compiler compiler_;
Expand Down
14 changes: 0 additions & 14 deletions sample/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,6 @@ int main(int argc, char *argv[])
{"pink floyd", "high hopes"}}},
};

/*
unordered_map<string, amps::number_t> ages = {
{"John", 53},
{"Mary", 21},
{"Nobody", -15},
};
vector<amps::number_t> random_nrs = {3, 12, 8, 1, 55,
static_cast<amps::number_t>(-12),
static_cast<amps::number_t>(-1), 0};
amps::user_map um {{"ages", ages}, {"nums", random_nrs}};
*/

amps::error err;
amps::engine engine(err);
engine.set_template_directory("/tmp");
Expand Down
1 change: 1 addition & 0 deletions src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace amps
{
engine::engine(error &err) :
path_("."),
error_(err),
scanner_(err),
compiler_(err)
{
Expand Down

0 comments on commit 63281cf

Please sign in to comment.