1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

inline assembly

This commit is contained in:
Alexander Medvednikov
2019-11-17 00:58:09 +03:00
parent 5a1de13e10
commit 2964bf9e23
4 changed files with 58 additions and 1 deletions

View File

@ -1208,6 +1208,9 @@ fn (p mut Parser) statement(add_semi bool) string {
.key_assert {
p.assert_statement()
}
.key_asm {
p.inline_asm()
}
else {
// An expression as a statement
typ := p.expression()
@ -2745,7 +2748,7 @@ fn (p mut Parser) return_st() {
p.returns = true
}
fn (p Parser) get_deferred_text() string {
fn (p &Parser) get_deferred_text() string {
// @emily33901: Scoped defer
// Check all of our defer texts to see if there is one at a higher scope level
// The one for our current scope would be the last so any before that need to be