Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove compiler directives #165

Merged
merged 3 commits into from
Dec 18, 2019
Merged

Remove compiler directives #165

merged 3 commits into from
Dec 18, 2019

Conversation

shargon
Copy link
Member

@shargon shargon commented Dec 11, 2019

Close #143

logger.Log("unsupported instruction " + src.code + "\r\n in: " + to.name + "\r\n");
break;
#else
throw new Exception("unsupported instruction " + src.code + "\r\n in: " + to.name + "\r\n");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be removed too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the log, but not the exception, isn't it? @lightszero

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lightszero we should throw the exception or only log it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me, it have sense to stop the conversion if one instruction is unsupported.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think should throw for here,skip this could be got more error..

@shargon shargon merged commit 0488881 into master Dec 18, 2019
@shargon shargon deleted the remove-directives branch December 18, 2019 17:13
@cloud8little
Copy link
Contributor

smoke test passed.

neo-devpack-dotnet: master dda641a
neo-cli: master 51cd29fbe21abb9e1f17f64e5c6d21bc7decbbb9
neo: master ab4830c
neo-vm: master be2ac36bf35a3033d828e0ba0630d390599c487d

  1. build project neo-devpack-dotnet. [Pass]
  2. build helloworld smart contract. [Pass]
  3. deploy helloworld contract. [Pass]
  4. deploy nep5 contract. [Pass]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to remove conditional compilation
4 participants