Skip to content

Commit

Permalink
Merge pull request #21 from eduardostalinho/fix_pop
Browse files Browse the repository at this point in the history
Fix pop instruction using __pragma__.
  • Loading branch information
berinhard authored May 6, 2019
2 parents b73f51f + e808e39 commit c41e59c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyp5js/pytop5js.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,10 @@ def push(*args):
return _P5_INSTANCE.push(*args)

def pop(*args):
return _P5_INSTANCE.pop(*args)
__pragma__('noalias', 'pop')
p5_pop = _P5_INSTANCE.pop(*args)
__pragma__('alias', 'pop', 'py_pop')
return p5_pop

def redraw(*args):
return _P5_INSTANCE.redraw(*args)
Expand Down

0 comments on commit c41e59c

Please sign in to comment.